diff options
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 |