summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdmount4
-rwxr-xr-xnotify-fw6
2 files changed, 5 insertions, 5 deletions
diff --git a/dmount b/dmount
index bc49df5..f281f43 100755
--- a/dmount
+++ b/dmount
@@ -85,7 +85,7 @@ getmount() { \
if [ ! -d "$mp" ]; then
mkdiryn=$(printf "No\\nYes" | $DMENU $ARGS $DEFARGS "$mp does not exist. Create it?") || \
exit 1
- [ "$mkdiryn" = "Yes" ] && (mkdir -p "$mp" || doas mkdir -p "$mp")
+ [ "$mkdiryn" = "Yes" ] && (mkdir -p "$mp" || sudo mkdir -p "$mp")
fi
}
@@ -110,7 +110,7 @@ mount_device () {
MOUNTPROPS="${MOUNTPROPS},force,rw"
fi
fi
- doas mount $MOUNTARGS $MOUNTPROPS "$1" "$mp" && show "Mounted successfully\n"
+ sudo mount $MOUNTARGS $MOUNTPROPS "$1" "$mp" && show "Mounted successfully\n"
}
DEVICE="$(get_available | $DMENU $DEFARGS "Devices" $ARGS )"
diff --git a/notify-fw b/notify-fw
index 55bfde8..62f148e 100755
--- a/notify-fw
+++ b/notify-fw
@@ -1,8 +1,8 @@
#!/bin/sh
-LIST="$(doas iptables -S)"
-LIST6="$(doas ip6tables -S)"
-LISTN="$(doas nft list ruleset)"
+LIST="$(sudo iptables -S)"
+LIST6="$(sudo ip6tables -S)"
+LISTN="$(sudo nft list ruleset)"
notify-send "IPTables rules" "IPTables Rules:\n$LIST"
notify-send "IP6Tables rules" "IP6Tables Rules:\n$LIST6"
notify-send "NFTables rules" "NFTables Rules:\n$LISTN"