base_dir is /etc/rc.d for archlinux /etc/init.d otherwise
This commit is contained in:
parent
342cbca533
commit
2147480fcd
1 changed files with 5 additions and 3 deletions
|
@ -28,11 +28,13 @@ fi
|
||||||
if [ -f "$__object/parameter/base_dir" ]; then
|
if [ -f "$__object/parameter/base_dir" ]; then
|
||||||
base_dir=$(cat "$__object/parameter/base_dir")
|
base_dir=$(cat "$__object/parameter/base_dir")
|
||||||
else
|
else
|
||||||
base_dir="/etc/init.d"
|
os="$(cat "$__global/explorer/os")"
|
||||||
|
case "$os" in
|
||||||
|
archlinux) base_dir="/etc/rc.d" ;;
|
||||||
|
*) base_dir="/etc/init.d"
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mode=$(cat "$__object/parameter/mode")
|
mode=$(cat "$__object/parameter/mode")
|
||||||
|
|
||||||
echo "${base_dir}/${script} ${mode}"
|
echo "${base_dir}/${script} ${mode}"
|
||||||
|
|
Loading…
Reference in a new issue