瀏覽代碼

Update install.sh

Suppress "file not found" error when testing for init
pull/94/head
MegaV0lt 5 年之前
committed by GitHub
父節點
當前提交
3740b50ec7
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      install.sh

+ 3
- 3
install.sh 查看文件

@@ -3,10 +3,10 @@
[ "$(id -u)" -eq 0 ] || { echo "You need to be ROOT (sudo can be used)"; exit 1; }

# See if we can find out the init-system
echo "Try to detect init..."
if [ "$(systemctl --version)" != '' ] ; then
echo "Try to detect init and running log2ram service..."
if [ "$(systemctl --version 2> /dev/null)" != '' ] ; then
INIT='systemd'
elif [ "$(rc-service --version)" != '' ] ; then
elif [ "$(rc-service --version 2> /dev/null)" != '' ] ; then
INIT='openrc'
fi



Loading…
取消
儲存