aboutsummaryrefslogtreecommitdiffstats
path: root/setup-apklbu.in
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2011-07-31 16:40:34 -0400
committerJeff Bilyk <jbilyk@gmail.com>2011-07-31 16:40:34 -0400
commit50a00f2f0f268425bebb5c1084b7ccf75e1ec519 (patch)
tree18753bea36baf35e9d7d7d9cc654f3b5931328f4 /setup-apklbu.in
parent70b1a6716dc5e2ed4a4b92d908691f86924c3753 (diff)
downloadalpine-conf-50a00f2f0f268425bebb5c1084b7ccf75e1ec519.tar.bz2
alpine-conf-50a00f2f0f268425bebb5c1084b7ccf75e1ec519.tar.xz
setup-{apklbu, bootable, chrony, sshd}: replace double equals in if statements with single equals
Diffstat (limited to 'setup-apklbu.in')
-rwxr-xr-xsetup-apklbu.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/setup-apklbu.in b/setup-apklbu.in
index 103511d..ff6d218 100755
--- a/setup-apklbu.in
+++ b/setup-apklbu.in
@@ -27,10 +27,10 @@ while getopts "im:h" opt; do
esac
done
-if [ "$VERBOSE" == "1" ]; then
+if [ "$VERBOSE" = "1" ]; then
echo "Setup apk caching and lbu? (y/N)"
default_read setupapklbu
- if [ "$setupapklbu" == "N" ] || [ "$setupapklbu" == "n" ]; then
+ if [ "$setupapklbu" = "N" ] || [ "$setupapklbu" = "n" ]; then
exit 0
fi
fi
@@ -49,11 +49,11 @@ fi
readwritestatus="`echo $mountstatus | awk -F '(' '{print $2}' | awk -F ',' '{print $1}'`"
-if [ "$readwritestatus" == "ro" ]; then
+if [ "$readwritestatus" = "ro" ]; then
rewrite=1
fi
-if [ "$rewrite" == 1 ]; then
+if [ "$rewrite" = 1 ]; then
mount -o remount,rw /media/${MOUNTPOINT} || die "Failed to remount media rw"
fi
@@ -75,6 +75,6 @@ LBU_MEDIA=$MOUNTPOINT
EOF
lbu package /media/"$MOUNTPOINT" || die "Failed to lbu apkovl on /media/${MOUNTPOINT}"
sync
-if [ "$rewrite" == 1 ]; then
+if [ "$rewrite" = 1 ]; then
mount -o remount,ro /media/${MOUNTPOINT} || die "Failed to remount media ro"
fi