From: Michael Tremer Date: Tue, 17 Nov 2020 16:35:13 +0000 (+0000) Subject: network: Mount/umount network file systems at the correct time X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e704dbe6bd661385d19bcc874f95b2ba4dbcce46;p=people%2Fms%2Fipfire-2.x.git network: Mount/umount network file systems at the correct time Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/153/filelists/files b/config/rootfiles/core/153/filelists/files index fddb5d68a3..10a19f8708 100644 --- a/config/rootfiles/core/153/filelists/files +++ b/config/rootfiles/core/153/filelists/files @@ -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 diff --git a/src/initscripts/system/network b/src/initscripts/system/network index 6e7120885f..32b34343e1 100644 --- a/src/initscripts/system/network +++ b/src/initscripts/system/network @@ -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