some mount and unmount scripts

This commit is contained in:
2025-07-27 13:46:15 +02:00
parent b2a0364fcb
commit 299e5aa5de
9 changed files with 99 additions and 18 deletions

17
.scripts/issu.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
if [ "$(id -u)" -eq 0 ]; then
exit 1
fi
if [ -n "$SUDO_USER" ]; then
exit 1
fi
if [ "$LOGNAME" != "$USER" ]; then
exit 1
fi
if [ "$(ps -o comm= -p $(ps -o ppid= -p $$) 2>/dev/null)" = "su" ]; then
exit 1
fi