Update beta.sh

Fix symblink to wrog place lol
This commit is contained in:
iamromulan
2024-01-05 21:53:07 -05:00
committed by GitHub
parent 0d97474953
commit 586bab2279

View File

@@ -117,7 +117,7 @@ install_update_simple_firewall() {
chmod +x "$SIMPLE_FIREWALL_SCRIPT"
wget -O "$SIMPLE_FIREWALL_SYSTEMD_DIR/simplefirewall.service" https://raw.githubusercontent.com/iamromulan/quectel-rgmii-toolkit/main/simplefirewall/systemd/simplefirewall.service
cp -f "$SIMPLE_FIREWALL_SYSTEMD_DIR/simplefirewall.service" "$SIMPLE_FIREWALL_SERVICE"
ln -sf "$SIMPLE_FIREWALL_SERVICE" "/etc/systemd/system/multi-user.target.wants/"
ln -sf "$SIMPLE_FIREWALL_SERVICE" "/lib/systemd/system/multi-user.target.wants/"
systemctl daemon-reload
systemctl restart simplefirewall
mount -o remount,ro /
@@ -129,6 +129,7 @@ uninstall_simple_firewall() {
echo "Uninstalling Simple Firewall..."
mount -o remount,rw /
systemctl stop simplefirewall
rm -f "/lib/systemd/system/multi-user.target.wants/simplefirewall.service"
rm -f "$SIMPLE_FIREWALL_SERVICE"
rm -rf "$SIMPLE_FIREWALL_DIR"
systemctl daemon-reload