initdev -> initmounts

This commit is contained in:
Jeffrey Townsend
2016-05-20 16:49:30 +00:00
parent b78a912292
commit 6eab05f1de
2 changed files with 6 additions and 19 deletions

View File

@@ -1,19 +0,0 @@
#!/bin/sh
. /lib/lsb/init-functions
log_action_begin_msg "Setting up block and net devices"
ln -snf /proc/mounts /etc/mtab
( cd /sys/class/block; for d in *; do /sbin/initblockdev $d add; done )
if [ -d /sys/class/ubi ]; then
( cd /sys/class/ubi; for d in *; do /sbin/initblockdev $d add; done )
fi
( cd /sys/class/net; for d in *; do /sbin/initnetdev $d add; done )
log_action_end_msg 0
log_action_begin_msg "Mounting filesystems"
initmounts -q
log_action_end_msg 0

View File

@@ -0,0 +1,6 @@
#!/bin/sh
. /lib/lsb/init-functions
log_action_begin_msg "Mounting filesystems..."
initmounts -q
log_action_end_msg 0