Skip to content

Commit

Permalink
Fix swap cleanup during uninstall
Browse files Browse the repository at this point in the history
sed pattern had a trailing space, probably from the times when
"# Skynet Firewall Addition" was the standard comment. This
prevented clean removal of the swapon/swapoff commands during
uninstall.
  • Loading branch information
dave14305 committed May 24, 2024
1 parent a57fe83 commit 493ae36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firewall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5715,7 +5715,7 @@ case "$1" in
case "$removeswap" in
1)
echo "[i] Removing Skynet Generated SWAP File"
sed -i '\~ Skynet ~d' /jffs/scripts/post-mount /jffs/scripts/unmount
sed -i '\~# Skynet~d' /jffs/scripts/post-mount /jffs/scripts/unmount
sync; echo 3 > /proc/sys/vm/drop_caches
swapoff -a
rm -rf "$swaplocation"
Expand Down

0 comments on commit 493ae36

Please sign in to comment.