diff options
author | Rod Whitby <rod@whitby.id.au> | 2007-06-26 08:14:09 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2007-06-26 08:14:09 +0000 |
commit | 98d70019b763b048fdd371382aae1dfa4d57cc42 (patch) | |
tree | 945ab9ddb1686cc185ec164b08323c46c9a2aac5 /packages/slugos-init/files/reflash | |
parent | d257f1adafa878f8d1d05d5a75c525fd866fb760 (diff) | |
parent | 47b97541ebbeee14b25cf5d3c86fced0837bb981 (diff) |
merge of '7d911a2d488420f755862dde3e5c82e43913c991'
and '999d34f6a16eb76013607894a0608c627e0279a1'
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 |