diff options
Diffstat (limited to 'openwrt/config_generation.sh')
-rw-r--r-- | openwrt/config_generation.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/openwrt/config_generation.sh b/openwrt/config_generation.sh index c8e9bfa..e119608 100644 --- a/openwrt/config_generation.sh +++ b/openwrt/config_generation.sh @@ -22,6 +22,13 @@ _rollback() { } apply() { + CYAN='\e[36m' + NORMAL='\e[0m' + + log() { + printf "$CYAN>> %s$NORMAL\n" "$*" + } + if ! rm -rf /overlay/upper.prev/ \ || ! cp -al /overlay/upper/ /overlay/upper.prev/ \ || ! rm -rf /overlay/upper.prev/etc/ \ @@ -44,10 +51,6 @@ apply() { trap 'reboot &' EXIT - log() { - printf "$LOG_FMT\n" "$*" - } - if ! ( set -e |