From 6f600e6bb451ced2400e982f6d3c7dd1355c29b6 Mon Sep 17 00:00:00 2001 From: Xiao Yu Date: Sun, 12 Aug 2018 20:36:53 +0000 Subject: [PATCH] Fix passing of vars into swap init file --- EnterRouterMode/bin/scripts/device-setup.sh | 8 ++++---- EnterRouterMode/bin/scripts/init.d-fb_swap.sh | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/EnterRouterMode/bin/scripts/device-setup.sh b/EnterRouterMode/bin/scripts/device-setup.sh index 105a948..e871fb8 100644 --- a/EnterRouterMode/bin/scripts/device-setup.sh +++ b/EnterRouterMode/bin/scripts/device-setup.sh @@ -105,10 +105,10 @@ echo "Writing out configs for using a swapfile on USB drive" install_init_script "fb_swap" add_mod "/etc/init.d/fb_swap" "$( cat <<- EOF - \$MNT_USB="$MNT_USB" - \$SWAP_FILE="$MNT_USB/EnterRouterMode/var/swapfile" - \$SWAP_LOCK="$MNT_USB/EnterRouterMode/var/swapfile.lock" - \$SWAP_LOG="$MNT_USB/EnterRouterMode/log/swapfile.log" + MNT_USB="$MNT_USB" + SWAP_FILE="$MNT_USB/EnterRouterMode/var/swapfile" + SWAP_LOCK="$MNT_USB/EnterRouterMode/var/swapfile.lock" + SWAP_LOG="$MNT_USB/EnterRouterMode/log/swapfile.log" EOF )" diff --git a/EnterRouterMode/bin/scripts/init.d-fb_swap.sh b/EnterRouterMode/bin/scripts/init.d-fb_swap.sh index 229dbee..7fa5c5f 100644 --- a/EnterRouterMode/bin/scripts/init.d-fb_swap.sh +++ b/EnterRouterMode/bin/scripts/init.d-fb_swap.sh @@ -1,4 +1,14 @@ #!/bin/sh +##START_MOD## +############# + +MNT_USB="" +SWAP_FILE="" +SWAP_LOCK="" +SWAP_LOG="" + +############# +###END_MOD### ## # Field Backup with RAVPower FileHub Plus