Browse Source

fix parse error when rcquiet is not set

Waldemar Brodkorb 11 years ago
parent
commit
94df8342ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/src/etc/init.d/rcS

+ 1 - 1
package/base-files/src/etc/init.d/rcS

@@ -5,6 +5,7 @@ if [ -f /proc/sys/kernel/printk ];then
 	echo 0 > /proc/sys/kernel/printk
 	echo 0 > /proc/sys/kernel/printk
 fi
 fi
 ln -s /proc/self/fd/2 /dev/stderr
 ln -s /proc/self/fd/2 /dev/stderr
+: ${rcquiet=0}
 if [ $rcquiet -ne 1 ];then
 if [ $rcquiet -ne 1 ];then
 	echo "System initialization ..."
 	echo "System initialization ..."
 fi
 fi
@@ -46,7 +47,6 @@ echo ${HOSTNAME:=openadk} >/proc/sys/kernel/hostname
 
 
 chown 0:0 /tmp; chmod 1777 /tmp
 chown 0:0 /tmp; chmod 1777 /tmp
 
 
-: ${rcquiet=0}
 if test x"$rcquiet" = x"0" && sh -n /etc/rc.conf >/dev/null 2>&1; then
 if test x"$rcquiet" = x"0" && sh -n /etc/rc.conf >/dev/null 2>&1; then
 	. /etc/rc.conf
 	. /etc/rc.conf
 	unset rcquiet
 	unset rcquiet