mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
OpenVPN gefixt.
ctorrent hinzugefuegt. UpdateBooster/SquidGuard gefixt. Pakfire-Archiv geaendert. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@647 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -296,7 +296,8 @@ void stopDaemon(void) {
|
||||
executeCommand(command);
|
||||
snprintf(command, STRING_SIZE - 1, "/bin/rm -f /var/run/openvpn.pid");
|
||||
executeCommand(command);
|
||||
executeCommand("modprobe -r tun");
|
||||
snprintf(command, STRING_SIZE-1, "/sbin/modprobe -r tun");
|
||||
executeCommand(command);
|
||||
}
|
||||
|
||||
void startDaemon(void) {
|
||||
@@ -306,7 +307,8 @@ void startDaemon(void) {
|
||||
fprintf(stderr, "OpenVPN is not enabled on any interface\n");
|
||||
exit(1);
|
||||
} else {
|
||||
executeCommand("modprobe tun");
|
||||
snprintf(command, STRING_SIZE-1, "/sbin/modprobe tun");
|
||||
executeCommand(command);
|
||||
snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config /var/ipfire/ovpn/server.conf");
|
||||
executeCommand(command);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
extract_files() {
|
||||
echo "Extracting files..."
|
||||
cd / && cpio -i < /opt/pakfire/tmp/files
|
||||
|
||||
tar xvf /opt/pakfire/tmp/files -C /
|
||||
echo "...Finished."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user