|
@ -15,6 +15,12 @@ |
|
|
|
|
|
|
|
|
. /etc/conf/idunn |
|
|
. /etc/conf/idunn |
|
|
|
|
|
|
|
|
|
|
|
if [ "x$1" = "x-v" ]; then |
|
|
|
|
|
verbose=yes |
|
|
|
|
|
else |
|
|
|
|
|
verbose= |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
if grep -q "^[^ ]* $rootfs " /proc/mounts; then |
|
|
if grep -q "^[^ ]* $rootfs " /proc/mounts; then |
|
|
# alredy mounted |
|
|
# alredy mounted |
|
|
error=0 |
|
|
error=0 |
|
@ -35,6 +41,11 @@ elif [ -n "$root" ]; then |
|
|
|
|
|
|
|
|
status |
|
|
status |
|
|
else |
|
|
else |
|
|
|
|
|
[ -z "$verbose" ] || |
|
|
|
|
|
cat <<-EOT >&2 |
|
|
|
|
|
sorry, root device not specified. |
|
|
|
|
|
mount it at $rootfs and try again |
|
|
|
|
|
EOT |
|
|
error=1 |
|
|
error=1 |
|
|
fi |
|
|
fi |
|
|
exit ${error:-0} |
|
|
exit ${error:-0} |