base-files: upgrade: Fix export_partdevice() quoting
[openwrt/staging/noltari.git] / package / base-files / files / lib / upgrade / common.sh
index 53b8865a57887d6ac75fa2d7a13fd68a7914be3b..af1182cb16a383afb978138434f80ceac57f41d9 100644 (file)
@@ -232,7 +232,7 @@ export_partdevice() {
                while read line; do
                        export -n "$line"
                done < "$uevent"
-               if [ $BOOTDEV_MAJOR = $MAJOR -a $(($BOOTDEV_MINOR + $offset)) = $MINOR -a -b "/dev/$DEVNAME" ]; then
+               if [ "$BOOTDEV_MAJOR" = "$MAJOR" -a $(($BOOTDEV_MINOR + $offset)) = "$MINOR" -a -b "/dev/$DEVNAME" ]; then
                        export "$var=$DEVNAME"
                        return 0
                fi