Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
0fb01df9
Commit
0fb01df9
authored
Sep 10, 2017
by
ThomasKaiser
Browse files
Minor tweaks
parent
085265ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
0fb01df9
...
...
@@ -6,14 +6,16 @@
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
# define sane $PATH
export
PATH
=
/usr/sbin:/usr/bin:/sbin:/bin
#-----------------------------------------------------------------------------------------------------------------------------------------#
# check for root
#
if
[[
$EUID
!=
0
]]
;
then
echo
"
Warning. This script
requires root privileges.
Exiting
..."
echo
"
This tool
requires root privileges.
Try again with
\"
sudo
\"
please
..."
>
&2
sleep
2
exit
exit
1
fi
...
...
debian-config-jobs
View file @
0fb01df9
...
...
@@ -6,6 +6,7 @@
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
[[
-n
${
SUDO_USER
}
]]
&&
SUDO
=
"sudo "
function
jobs
()
{
...
...
@@ -55,9 +56,8 @@ function jobs ()
#
"Monitor"
)
clear
armbianmonitor
echo
-e
"
\n
Type
\e
[92m
$0
\e
[0m to get back
\n
"
exit
armbianmonitor
-m
sleep
2
;;
...
...
@@ -66,7 +66,7 @@ function jobs ()
"Consumption"
)
clear
h3consumption
echo
-e
"
\n
Type
\e
[92m
$
0
\e
[0m to get back
\n
"
echo
-e
"
\n
Type
\e
[92m
$
{
SUDO
}${
0
##*/
}
\e
[0m to get back
\n
"
exit
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment