Skip to content

Commit

Permalink
Fix passing of vars into swap init file
Browse files Browse the repository at this point in the history
  • Loading branch information
xyu committed Aug 12, 2018
1 parent 2d8b1c9 commit 6f600e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EnterRouterMode/bin/scripts/device-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
)"

Expand Down
10 changes: 10 additions & 0 deletions EnterRouterMode/bin/scripts/init.d-fb_swap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/bin/sh
##START_MOD##
#############

MNT_USB=""
SWAP_FILE=""
SWAP_LOCK=""
SWAP_LOG=""

#############
###END_MOD###

##
# Field Backup with RAVPower FileHub Plus
Expand Down

0 comments on commit 6f600e6

Please sign in to comment.