diff options
| author | OpenWrt Developers <openwrt-devel@openwrt.org> | 2004-07-27 07:27:13 +0000 |
|---|---|---|
| committer | OpenWrt Developers <openwrt-devel@openwrt.org> | 2004-07-27 07:27:13 +0000 |
| commit | 2ae99302ab3b7e52fa882ff411ed24bc3cd302e1 (patch) | |
| tree | e9ae0639b04197b20c615c56d1ff78ced0d5e1cf /root/bin/firstboot | |
| parent | 957ae8abc728b43589e19001055adfe476e05ddf (diff) | |
| download | upstream-2ae99302ab3b7e52fa882ff411ed24bc3cd302e1.tar.gz upstream-2ae99302ab3b7e52fa882ff411ed24bc3cd302e1.tar.bz2 upstream-2ae99302ab3b7e52fa882ff411ed24bc3cd302e1.zip | |
fix syntax error
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@113 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root/bin/firstboot')
| -rwxr-xr-x | root/bin/firstboot | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/root/bin/firstboot b/root/bin/firstboot index f28a042bf16..5076d1c181b 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... " |
