rescueOS/fs-overlay/rescueOS/setup-wpa-wifi.sh
Daniel Gnoutcheff be8a7817dd Create fs-overlay, post-build
Setup buildroot filesystem overlay and move our custom scripts/configs
into it.  Setup a post-build script and have it delete files generated
by buildroot that aren't in RescueOS v1.1.

This gets us closer to a buildroot configuration that will automatically
generate RescueOS images.  For now, we're using RescueOS v1.1 as a
reference.
2015-04-02 21:16:02 -04:00

15 行
416 B
Bash
実行ファイル

#!/bin/sh
ermsg()
{
echo $1
exit
}
ls /lib/firmware/ | grep wl1251 > /dev/null || ermsg "Firmware not found. Copy wl1251-fw.bin, wl1251-nvs.bin from maemo.".
[ -e /run/wlan.conf ] || ermsg "Yeah, please run wpa_passphrase [essid] [password ] > /run/wlan.conf first."
modprobe wl1251_spi
#Works for my router, probably for yours too, if not, then not :-)
sleep 1;
wpa_supplicant -Dwext -iwlan0 -c/run/wlan.conf &