[LEDE-DEV] [PATCH v3 1/4] base-files: generate /etc/config/wireless, if it doesn't exist
Bastian Bittorf
bb at npl.de
Tue Oct 18 03:05:43 PDT 2016
* Christian Lamparter <chunkeey at googlemail.com> [18.10.2016 08:41]:
> wifi_detect() {
> + [ ! -f /etc/config/wireless ] && touch /etc/config/wireless
> +
> for driver in $DRIVERS; do (
> if eval "type detect_$driver" 2>/dev/null >/dev/null; then
> eval "detect_$driver" || echo "$driver: Detect failed" >&2
maybe move it down, otherwise also on
boards without wifi we touch '/etc/config/wireless':
if eval "detect_$driver" 2>/dev/null >/dev/null; then
[ -f /etc/config/wireless ] || touch /etc/config/wireless
...
else
...
fi
bye, bastian
More information about the Lede-dev
mailing list