rc script, pm - package manger and update init scripts
This commit is contained in:
1 parent
7c88b136ef
commit
31717c44b6
40 files changed
+569
-231
No files matched your search
@@ -1,4 +1,7 @@
|
||||
#!/bin/sh
|
||||
Green='\033[0;32m'
|
||||
Color_Off='\033[0m'
|
||||
Red='\033[0;31m'
|
||||
|
||||
init () {
|
||||
test -f $DAEMON || exit 0
|
||||
@@ -58,3 +61,15 @@ sleep 1
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
check() {
|
||||
if [[ "$1" == "0" ]];then
|
||||
printf "[$Green OK $Color_Off]\n"
|
||||
else
|
||||
printf "[$Red ERR $Cpolor_Off]\n"
|
||||
fi
|
||||
}
|
||||
|
||||
notify() {
|
||||
printf "$*"
|
||||
}
|
||||
Reference in new issue
Block a user