Latest scripts and such from argon40.

These scripts are used by me to determine if there is anything else I
want to add to the oneUp environment.
This commit is contained in:
Jeff Curless
2026-01-10 19:04:49 -05:00
parent 4a74ca431d
commit 112e7a9548
6 changed files with 511 additions and 310 deletions

View File

@@ -98,8 +98,14 @@ then
sudo systemctl stop argonupsrtcd.service
sudo systemctl disable argonupsrtcd.service
sudo systemctl --global stop argononeupsduser.service
sudo systemctl --global disable argononeupsduser.service
for tmpuser in `awk -F: '{ if ($3 >= 1000) print $1 }' /etc/passwd`
do
if [ "$tmpuser" != "nobody" ]
then
sudo -u "$tmpuser" systemctl --user stop argononeupsduser.service
sudo -u "$tmpuser" systemctl --user disable argononeupsduser.service
fi
done
# Remove files
sudo rm /lib/systemd/system/argononeupsd.service