diff options
author | Rod Whitby <rod@whitby.id.au> | 2007-06-26 08:12:50 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2007-06-26 08:12:50 +0000 |
commit | 47b97541ebbeee14b25cf5d3c86fced0837bb981 (patch) | |
tree | 081a72e8f075cef75941b7242f08cbc37147f597 /packages/slugos-init/files/reflash | |
parent | 40938c2895f49c3274df61be263a4e38f23ee41e (diff) |
slugos-init: Updated turnup, sysconf and reflash scripts to handle the root partition being named 'rootfs' instead of the vendor firmware naming.
Diffstat (limited to 'packages/slugos-init/files/reflash')
-rw-r--r-- | packages/slugos-init/files/reflash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/slugos-init/files/reflash b/packages/slugos-init/files/reflash index 131f0b67de..22a18bb068 100644 --- a/packages/slugos-init/files/reflash +++ b/packages/slugos-init/files/reflash @@ -146,7 +146,7 @@ then then imgksize="$size" imgkoffset="$base" - elif test "$name" = "$ffspart" + elif test "$name" = "$ffspart" -o "$name" = "rootfs" then imgffssize="$size" imgffsoffset="$base" @@ -320,6 +320,8 @@ ffssize=0 if test -n "$ffsfile" then ffsdev="$(mtblockdev $ffspart)" + [ -n "$ffsdev" ] || \ + ffsdev="$(mtblockdev rootfs)" test -n "$ffsdev" -a -b "$ffsdev" || { echo "reflash: $ffspart($ffsdev): cannot find $ffspart mtd partition." >&2 echo " check /proc/mtd, either the partition does not exist or there is no" >&2 |