aredn/files/etc/uci-defaults/94_fix_wpad

7 lines
131 B
Bash
Executable File

#! /bin/sh
# Disable hostapd (etc) on devices without wifi
if [ ! -d /sys/class/ieee80211 ]; then
/etc/init.d/wpad disable
fi