Browse Source

Update install.sh

Suppress "file not found" error when testing for init
pull/94/head
MegaV0lt 5 years ago
committed by GitHub
parent
commit
3740b50ec7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      install.sh

+ 3
- 3
install.sh View File

@@ -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…
Cancel
Save