Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions shared/scripts/qinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -408,18 +408,18 @@ store_config(){
set_qpkg_config "$file" "$new_md5sum"
# Files relative to QPKG directory are changed to full path.
[ -z "${file##/*}" ] || file="$SYS_QPKG_DIR/$file"
current_md5sum=$($CMD_MD5SUM "$file" 2>/dev/null | $CMD_CUT -d' ' -f1)
if [ "$orig_md5sum" = "$current_md5sum" ] || [ "$new_md5sum" = "$current_md5sum" ]; then
: Use new file
elif [ -f $file ]; then
if [ -f $file ]; then
current_md5sum=$($CMD_MD5SUM "$file" 2>/dev/null | $CMD_CUT -d' ' -f1)
if [ -z "$orig_md5sum" ]; then
$CMD_MV $file ${file}.qdkorig
if [ -x "/usr/local/sbin/notify" ]; then
/usr/local/sbin/notify send -A A039 -C C001 -M 38 -l info -t 3 "[{0}] {1} action: {2} is saved as {2}.qdkorig" "$PREFIX" "$QPKG_DISPLAY_NAME" "$file"
else
log "[$PREFIX] $QPKG_DISPLAY_NAME saved ${file} as ${file}.qdkorig."
fi
elif [ "$orig_md5sum" = "$new_md5sum" ]; then
elif [ "$orig_md5sum" = "$current_md5sum" ] || [ "$new_md5sum" = "$current_md5sum" ]; then
: Use new file
elif [ "$orig_md5sum" = "$new_md5sum" ]; then
$CMD_TAR rf $SYS_TAR_CONFIG $file 2>/dev/null
else
$CMD_MV $file ${file}.qdksave
Expand Down