Pārlūkot izejas kodu

Update install.sh

Suppress "file not found" error when testing for init
pull/94/head
MegaV0lt pirms 5 gadiem
committed by GitHub
vecāks
revīzija
3740b50ec7
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      install.sh

+ 3
- 3
install.sh Parādīt failu

@@ -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



Notiek ielāde…
Atcelt
Saglabāt