aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2004-07-27 07:27:13 +0000
committerMike Baker <mbm@openwrt.org>2004-07-27 07:27:13 +0000
commit3e988e1271e6cd1cbb10768b5385fa077a89b7e2 (patch)
treee9ae0639b04197b20c615c56d1ff78ced0d5e1cf
parentce568ad431349bd1214785dfb8ad4712eeee3e26 (diff)
downloadupstream-3e988e1271e6cd1cbb10768b5385fa077a89b7e2.tar.gz
upstream-3e988e1271e6cd1cbb10768b5385fa077a89b7e2.tar.bz2
upstream-3e988e1271e6cd1cbb10768b5385fa077a89b7e2.zip
fix syntax error
SVN-Revision: 113
-rwxr-xr-xroot/bin/firstboot5
-rwxr-xr-xroot/bin/ipkg2
-rwxr-xr-xroot/etc/init.d/S99done2
-rwxr-xr-xroot/sbin/ifdown2
4 files changed, 6 insertions, 5 deletions
diff --git a/root/bin/firstboot b/root/bin/firstboot
index f28a042bf1..5076d1c181 100755
--- a/root/bin/firstboot
+++ b/root/bin/firstboot
@@ -1,7 +1,6 @@
#!/bin/sh
# $Id$
-exec 2>/dev/null
[ -f "/tmp/.firstboot" ] && {
echo "firstboot is already running"
@@ -13,7 +12,7 @@ jdev=$(mount | awk '/jffs2/ {print $3}')
if [ -z "$jdev" ]; then
echo -n "Creating jffs2 partition... "
- mtd erase OpenWrt >-
+ mtd erase OpenWrt >&-
mount -t jffs2 /dev/mtdblock/4 /jffs
echo "done"
cd /jffs
@@ -23,6 +22,8 @@ else
cd $jdev
fi
+exec 2>/dev/null
+
mount /dev/mtdblock/2 /rom -o ro
echo -n "creating directories... "
diff --git a/root/bin/ipkg b/root/bin/ipkg
index c802ce1b3a..bf275d842d 100755
--- a/root/bin/ipkg
+++ b/root/bin/ipkg
@@ -26,7 +26,7 @@ ipkg_is_upgrade () {
while [ \! -z "$A" ] && [ \! -z "$B" ]; do {
set $A; a=$1; shift; A=$*
set $B; b=$1; shift; B=$*
- { [ "$a" -gt "$b" ] 2>- || [ "$a" ">" "$b" ]; } && { return 0; }
+ { [ "$a" -gt "$b" ] 2>&- || [ "$a" ">" "$b" ]; } && { return 0; }
}; done
return 1;
}
diff --git a/root/etc/init.d/S99done b/root/etc/init.d/S99done
index 3ba15e8bc4..73a4da4684 100755
--- a/root/etc/init.d/S99done
+++ b/root/etc/init.d/S99done
@@ -1,6 +1,6 @@
#!/bin/sh
[ -z "$FAILSAFE" ] && {
- { mount | grep jffs2 1>-; } || firstboot
+ { mount | grep jffs2 1>&-; } || firstboot
}
# turn off DMZ led
echo "0x00" > /proc/sys/diag
diff --git a/root/sbin/ifdown b/root/sbin/ifdown
index d1d19b0333..4c7e982117 100755
--- a/root/sbin/ifdown
+++ b/root/sbin/ifdown
@@ -4,5 +4,5 @@
debug "### ifdown $type ###"
if=$(nvram_get ${type}_ifname)
if_valid $if || return
- kill $(cat /var/run/${if}.pid 2>-) 2>-
+ kill $(cat /var/run/${if}.pid 2>&-) 2>&-
$DEBUG ifconfig $if down