#!/bin/zsh unsetopt bg_nice ( touch /tmp/rcl-fail for i in \ ifupdown console-screen.sh alsa-utils screen-cleanup sudo stop-bootlogd-single \ loadcpufreq rsyslog acpid cpufrequtils postfix anacron cron acpi-support rmnologin stop-bootlogd \ ; { /etc/init.d/$i start &> /dev/null || echo "Failed to start /etc/init.d/$i" >> /tmp/rcl-d-fail } rm /tmp/rcl-fail ) &! ( touch /tmp/rcl2-fail ifup -a ip link set lan up if [[ $(cat /sys/class/net/lan/carrier) == 1 ]] { ifup lan &> /dev/null } else { ip link set lan down ip link set ra0 up if iwlist ra0 scanning | grep -qF 'ESSID:"DEVNULL"'; then ifup ra0 &> /dev/null else ip link set ra0 down fi } rm /tmp/rcl2-fail ) &! exit 0