Conf.d/net

From 0xWIKI
Jump to: navigation, search
preup() {
if [[ ${IFACE} == "wlan0" ]]; then
        if ifplugstatus | grep -q 'eth0: link beat detected'; then
                ewarn "Wired connection on eth0 detected, aborting configuration on ${IFACE}"
                return 1
        fi
fi
return 0
}

ifplugd_wlan0=("dhcp")
Personal tools