mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
core160: apply ssh config, start/stop IPSec and set need_reboot flag
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -38,6 +38,7 @@ rm -vf /sbin/regdbdump
|
||||
rm -vf /usr/lib/libreg.so
|
||||
|
||||
# Stop services
|
||||
/etc/init.d/ipsec stop
|
||||
|
||||
# Extract files
|
||||
extract_files
|
||||
@@ -54,10 +55,17 @@ telinit u
|
||||
# Filesytem cleanup
|
||||
/usr/local/bin/filesystem-cleanup
|
||||
|
||||
# Apply local configuration to sshd_config
|
||||
/usr/local/bin/sshctrl
|
||||
|
||||
# Start services
|
||||
/etc/init.d/sshd restart
|
||||
if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
|
||||
/etc/init.d/ipsec start
|
||||
fi
|
||||
|
||||
# This update needs a reboot...
|
||||
#touch /var/run/need_reboot
|
||||
touch /var/run/need_reboot
|
||||
|
||||
# Finish
|
||||
/etc/init.d/fireinfo start
|
||||
|
||||
Reference in New Issue
Block a user