7.0.5 #86
|
@ -3,12 +3,6 @@
|
||||||
# SwITNet Ltd © - 2022, https://switnet.net/
|
# SwITNet Ltd © - 2022, https://switnet.net/
|
||||||
# GPLv3 or later.
|
# GPLv3 or later.
|
||||||
|
|
||||||
####
|
|
||||||
# NOTE: Only use this script if you know what you are doing.
|
|
||||||
# Under your own risk.
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY.
|
|
||||||
####
|
|
||||||
wait_seconds() {
|
wait_seconds() {
|
||||||
secs=$(($1))
|
secs=$(($1))
|
||||||
while [ $secs -gt 0 ]; do
|
while [ $secs -gt 0 ]; do
|
||||||
|
@ -18,6 +12,13 @@ while [ $secs -gt 0 ]; do
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "####
|
||||||
|
# NOTE: Only use this script if you know what you are doing.
|
||||||
|
# Under your own risk.
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY.
|
||||||
|
####"
|
||||||
|
|
||||||
# Check if user is root
|
# Check if user is root
|
||||||
if [ "$UID" != 0 ]; then
|
if [ "$UID" != 0 ]; then
|
||||||
echo You need to run this script as root or sudo rights!
|
echo You need to run this script as root or sudo rights!
|
||||||
|
|
Loading…
Reference in New Issue