diff --git a/files/initrd/opt/rr/boot.sh b/files/initrd/opt/rr/boot.sh index 7eb03505..fb304b4a 100755 --- a/files/initrd/opt/rr/boot.sh +++ b/files/initrd/opt/rr/boot.sh @@ -160,7 +160,7 @@ if [ "${DIRECT}" = "true" ]; then reboot exit 0 else - ETHX=$(ls /sys/class/net/ | grep -v lo | true) + ETHX=$(ls /sys/class/net/ | grep -v lo || true) echo "$(printf "$(TEXT "Detected %s network cards.")" "$(echo ${ETHX} | wc -w)")" echo "$(TEXT "Checking Connect.")" COUNT=0 diff --git a/files/initrd/opt/rr/init.sh b/files/initrd/opt/rr/init.sh index eb3840b2..077603af 100755 --- a/files/initrd/opt/rr/init.sh +++ b/files/initrd/opt/rr/init.sh @@ -18,7 +18,7 @@ printf "\033[1;32m%*s\033[0m\n" $(((${#TITLE} + ${COLUMNS}) / 2)) "${TITLE}" printf "\033[1;44m%*s\033[0m\n" ${COLUMNS} "" # Get first MAC address -ETHX=$(ls /sys/class/net/ | grep -v lo | true) +ETHX=$(ls /sys/class/net/ | grep -v lo || true) # No network devices [ $(echo ${ETHX} | wc -w) -le 0 ] && die "$(TEXT "Network devices not found!")"