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