135 |
local opts |
local opts |
136 |
|
|
137 |
# only run if systemd was found |
# only run if systemd was found |
138 |
if [[ ! -x /bin/systemctl ]] |
if [[ ! -x /bin/systemctl ]] && [[ ! -x /usr/bin/systemctl ]] |
139 |
then |
then |
140 |
echo "systemd not found, not adding unit ${service} to runlevels!" |
echo "systemd not found, not adding unit ${service} to runlevels!" |
141 |
return |
return |
189 |
local opts |
local opts |
190 |
|
|
191 |
# only run if systemd was found |
# only run if systemd was found |
192 |
if [[ ! -x /bin/systemctl ]] |
if [[ ! -x /bin/systemctl ]] && [[ ! -x /usr/bin/systemctl ]] |
193 |
then |
then |
194 |
echo "systemd not found, not removing unit ${service} from runlevels!" |
echo "systemd not found, not removing unit ${service} from runlevels!" |
195 |
return |
return |
255 |
local opts |
local opts |
256 |
|
|
257 |
# only run if systemd was found |
# only run if systemd was found |
258 |
if [[ ! -x /bin/systemctl ]] |
if [[ ! -x /bin/systemctl ]] && [[ ! -x /usr/bin/systemctl ]] |
259 |
then |
then |
260 |
echo "systemd not found, not removing unit ${service} from runlevels!" |
echo "systemd not found, not removing unit ${service} from runlevels!" |
261 |
return |
return |