aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/fstools/files/snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/fstools/files/snapshot')
-rw-r--r--package/system/fstools/files/snapshot6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/system/fstools/files/snapshot b/package/system/fstools/files/snapshot
index 1450e12458..a0e0ec0c33 100644
--- a/package/system/fstools/files/snapshot
+++ b/package/system/fstools/files/snapshot
@@ -38,16 +38,16 @@ do_config_push() {
do_snapshot_upgrade() {
opkg update
- [ $? == 0 ] || exit 1
+ [ $? -eq 0 ] || exit 1
opkg list-upgradable
- [ $? == 0 ] || exit 2
+ [ $? -eq 0 ] || exit 2
UPDATES=`opkg list-upgradable | cut -d" " -f1`
[ -z "${UPDATES}" ] && exit 0
opkg upgrade ${UPDATES}
- [ $? == 0 ] || exit 3
+ [ $? -eq 0 ] || exit 3
do_snapshot_push
sleep 5