diff options
author | Adrian Hunter <ext-adrian.hunter@nokia.com> | 2007-03-16 18:08:21 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-03-29 17:17:00 +0300 |
commit | a8389fa276651f708a9da7d1feb6d5f25afc6704 (patch) | |
tree | 7b042ff3888e9a5610a7aabd88f2b5394eec9e84 /ubi-utils | |
parent | 2271f47026e986ecd038db8fbf7a1d14c11a7b64 (diff) |
UBI-Utils: Updated scripts for latest UBI
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Diffstat (limited to 'ubi-utils')
-rwxr-xr-x | ubi-utils/scripts/ubi_test.sh | 4 | ||||
-rwxr-xr-x | ubi-utils/scripts/ubi_tools_test.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ubi-utils/scripts/ubi_test.sh b/ubi-utils/scripts/ubi_test.sh index 8e62fb4..73e4b19 100755 --- a/ubi-utils/scripts/ubi_test.sh +++ b/ubi-utils/scripts/ubi_test.sh @@ -95,7 +95,7 @@ delete_volume () volume=$1 ### FIXME broken sysfs!!!! - if [ -e /sys/class/ubi/$volume -o -e /sys/class/ubi/ubi0/$volume ]; then + if [ -e /sys/class/ubi/$volume -o -e /sys/class/ubi/ubi0/$volume -o -e /sys/class/ubi/ubi0_$volume ]; then echo -n "*** Truncate volume if it exists ... " $UBIUPDATEVOL -d0 -n$volume -t @@ -325,4 +325,4 @@ echo "* Congratulations, no errors found! *" echo "* Have fun with your cool UBI system! *" echo "***********************************************************************" -exit_success
\ No newline at end of file +exit_success diff --git a/ubi-utils/scripts/ubi_tools_test.sh b/ubi-utils/scripts/ubi_tools_test.sh index b4d167e..7f121f1 100755 --- a/ubi-utils/scripts/ubi_tools_test.sh +++ b/ubi-utils/scripts/ubi_tools_test.sh @@ -96,7 +96,7 @@ delete_volume () volume=$1 ### FIXME broken sysfs!!!! - if [ -e /sys/class/ubi/$volume -o -e /sys/class/ubi/ubi0/$volume ]; then + if [ -e /sys/class/ubi/$volume -o -e /sys/class/ubi/ubi0/$volume -o -e /sys/class/ubi/ubi0_$volume ]; then echo -n "*** Truncate volume if it exists ... " $UBIWRITEVOL -d0 -n$volume -t @@ -249,4 +249,4 @@ echo "* Congratulations, no errors found! *" echo "* Have fun with your cool UBI system! *" echo "***********************************************************************" -exit_success
\ No newline at end of file +exit_success |