continue
fi
fi
+ CURDIR="$(pwd)"
+ ZIPOUT="$(mktemp -d)"
+ cd $ZIPOUT
echo "DEBUG: analyse wgt file"
- unzip $wgtfile
+ unzip $CURDIR/$wgtfile
if [ $? -ne 0 ];then
# TODO Do not fail yet, busybox unzip seems to "fail with success" when checking CRC
echo "ERROR: cannot unzip $wgtfile"
echo "DEBUG: fail to unzip"
fi
+ cd $CURDIR
+ rm -r $ZIPOUT
+
echo "DEBUG: list current pkgs"
# TODO mktemp
LIST='list'
fi
echo "DEBUG: check if we see the package with systemctl list-units (before start)"
- systemctl list-units --full | grep "afm.*$WGTNAME"
+ systemctl list-units --full | grep "afm.*$WGTNAME--"
echo "DEBUG: check if we see the package with systemctl -a (before start)"
- systemctl -a |grep "afm.*$WGTNAME"
+ systemctl -a |grep "afm.*$WGTNAME--"
echo "DEBUG: start $NAMEID"
do_afm_util start $NAMEID > "rid"
fi
echo "DEBUG: check if we see the package with systemctl list-units (after start)"
- systemctl list-units --full | grep "afm.*$WGTNAME"
+ systemctl list-units --full | grep "afm.*$WGTNAME--"
echo "DEBUG: check if we see the package with systemctl -a (after start)"
- systemctl -a |grep "afm.*$WGTNAME"
+ systemctl -a |grep "afm.*$WGTNAME--"
echo "DEBUG: Get RID for $NAMEID"
PSLIST="pslist"