From 2f3224feb8e8a0959ed3a96b11ce0507d256b7d5 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 4 Jan 2020 06:49:33 +0300 Subject: [PATCH] minor tweaks and notes... Signed-off-by: Alex A. Naanou --- scripts/sync-flash.sh | 10 ++++++++-- ui (gen4)/archive/media/img/my/work/sync-flash.sh | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/scripts/sync-flash.sh b/scripts/sync-flash.sh index d3351ef3..16a267db 100755 --- a/scripts/sync-flash.sh +++ b/scripts/sync-flash.sh @@ -1,5 +1,7 @@ #!/bin/bash +VERSION=1.0 + DATE=`date +%Y%m%d` COUNT=1 TITLE="" @@ -21,8 +23,12 @@ COMPRESS=1 # Config file to contain all the default settings... # XXX not sure if this is a good idea... -##if [ -e ~/.sync-flash.rc ] ; then -## source ~/.sync-flash.rc +# ...should we also check file sec? +##CONFIG=.sync-flash.rc +##if ! [ -z $CONFIG ] && [ -e ~/$CONFIG ] ; then +## # XXX what I don't like here is that we are +## # executing an external file... +## source ~/$CONFIG ##fi diff --git a/ui (gen4)/archive/media/img/my/work/sync-flash.sh b/ui (gen4)/archive/media/img/my/work/sync-flash.sh index d3351ef3..16a267db 100755 --- a/ui (gen4)/archive/media/img/my/work/sync-flash.sh +++ b/ui (gen4)/archive/media/img/my/work/sync-flash.sh @@ -1,5 +1,7 @@ #!/bin/bash +VERSION=1.0 + DATE=`date +%Y%m%d` COUNT=1 TITLE="" @@ -21,8 +23,12 @@ COMPRESS=1 # Config file to contain all the default settings... # XXX not sure if this is a good idea... -##if [ -e ~/.sync-flash.rc ] ; then -## source ~/.sync-flash.rc +# ...should we also check file sec? +##CONFIG=.sync-flash.rc +##if ! [ -z $CONFIG ] && [ -e ~/$CONFIG ] ; then +## # XXX what I don't like here is that we are +## # executing an external file... +## source ~/$CONFIG ##fi