mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 01:42:58 +02:00
Openswan patch fuer Fehler im Realsetup
Remote CGI fuer ssh tempstart fertig kleine Korrektur der sshctrl und syslogdctrl git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@849 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -130,6 +130,7 @@ int main(int argc, char *argv[])
|
||||
sleep(5);
|
||||
unlink("/var/ipfire/remote/enablessh");
|
||||
safe_system("cat /var/ipfire/remote/settings | sed 's/ENABLE_SSH=on/ENABLE_SSH=off/' > /var/ipfire/remote/settings2 && mv /var/ipfire/remote/settings2 /var/ipfire/remote/settings");
|
||||
safe_system("chown nobody.nobody /var/ipfire/remote/settings");
|
||||
snprintf(command, BUFFER_SIZE-1, "sleep %s && /usr/local/bin/sshctrl &", argv[2]);
|
||||
safe_system(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user