|
|
@ -98,11 +98,13 @@ function services() { |
|
|
|
local s |
|
|
|
local s |
|
|
|
case $1 in |
|
|
|
case $1 in |
|
|
|
servicesList) |
|
|
|
servicesList) |
|
|
|
s="$(systemctl list-unit-files|grep enabled |wc -l)" |
|
|
|
|
|
|
|
|
|
|
|
s="$(systemctl list-unit-files|grep enabled |awk '{print $1}' | awk -F '.' '{print $1}')" |
|
|
|
echo $s |
|
|
|
echo $s |
|
|
|
;; |
|
|
|
;; |
|
|
|
service) |
|
|
|
service) |
|
|
|
systemctl list-unit-files|grep enabled |awk '{print $1}' | awk -F '.' '{print $1}' |
|
|
|
s=$(systemctl list-unit-files|grep enabled) |
|
|
|
|
|
|
|
echo $s |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
} |
|
|
|
} |
|
|
|