network: Mount/umount network file systems at the correct time

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-11-17 16:35:13 +00:00
parent 1a3c53556e
commit e704dbe6bd
2 changed files with 9 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
etc/issue
etc/ntp.conf
etc/os-release
etc/rc.d/init.d/network
etc/rc.d/init.d/unbound
etc/system-release
etc/sysctl.conf

View File

@@ -67,9 +67,17 @@ case "${DO}" in
/usr/local/bin/ipsec-interfaces
/etc/rc.d/init.d/static-routes start
boot_mesg "Mounting network file systems..."
mount -a -O _netdev
evaluate_retval
;;
stop)
boot_mesg "Umounting network file systems..."
umount -a -O _netdev
evaluate_retval
# Stopping interfaces...
# GREEN
[ "$green" == "1" ] && /etc/rc.d/init.d/networking/green stop