From 7797debad9c55949482e111992c3cd10b221809f Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Mon, 3 Aug 2009 08:24:21 -0400 Subject: Do not rely on -L test; use -h instead. See `man dash` Signed-off-by: Loui Chang Signed-off-by: Aaron Griffin --- init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init') diff --git a/init b/init index ee29725..c44904c 100644 --- a/init +++ b/init @@ -105,7 +105,7 @@ if [ -z "${nfsroot}" -a "${root}" != "/dev/nfs" ]; then /bin/mknod /dev/root b ${BLOCKDEVICE} >/dev/null export root="/dev/root" fi - if [ ! -b "${root}" -a ! -L "${root}" ]; then + if [ ! -b "${root}" -a ! -h "${root}" ]; then err "Unable to detect or create root device '${root}'" echo "You are being dropped to a recovery shell" echo " Type 'reboot' to reboot" -- cgit v1.2.3-24-g4f1b