Browse Source

- skel-root: fix fstab init script

master
vanhofen 5 years ago
parent
commit
0fdf4b35a0
  1. 8
      skel-root/general/scripts/fstab.init

8
skel-root/general/scripts/fstab.init

@ -12,15 +12,15 @@ is_mount()
{ {
RET=1 RET=1
test -f $MTAB || return $RET test -f $MTAB || return $RET
while read DEV MTPT FSTYPE OPTS REST while read _DEV _MTPT _FSTYPE _OPTS _REST
do do
case "$FSTYPE" in case "$_FSTYPE" in
"tmpfs") "tmpfs")
continue continue
;; ;;
esac esac
case "$1" in case "$1" in
"$DEV"|"$MTPT") "$_DEV"|"$_MTPT")
RET=0 RET=0
break break
;; ;;
@ -97,7 +97,7 @@ mount_netfs()
( (
try=51 try=51
while(true); do while(true); do
if OUT=$(mount $MTPT 2>&1 >/dev/null); then if OUT=$(mount -t $FSTYPE -o $OPTS $DEV $MTPT 2>&1 >/dev/null); then
RET=$? RET=$?
LOGINFO "mount: $MTPT - success ($RET)" LOGINFO "mount: $MTPT - success ($RET)"
test -e $SRVFLAG || touch $SRVFLAG test -e $SRVFLAG || touch $SRVFLAG

Loading…
Cancel
Save