File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed
Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 33set -u
44set -e
55
6- persistent_path=" /root"
7-
86echo " Post-build: processing $@ "
97
10- # Look for persistent path variable in .config
11- BR2_PACKAGE_WPEFRAMEWORK_PERSISTENT_PATH=" $( grep ^BR2_PACKAGE_WPEFRAMEWORK_PERSISTENT_PATH= ${BR2_CONFIG} ) "
12-
13- if [[ $BR2_PACKAGE_WPEFRAMEWORK_PERSISTENT_PATH == BR2_PACKAGE_WPEFRAMEWORK_PERSISTENT_PATH= * ]];
14- then
15- # Strip variable name
16- persistent_path=` echo ${BR2_PACKAGE_WPEFRAMEWORK_PERSISTENT_PATH: 41} `
17- # Strip quotes
18- persistent_path=` sed -e ' s/^"//' -e ' s/"$//' <<< " $persistent_path" `
19- echo " Persistent-path: $persistent_path "
20- fi
21-
228for i in " $@ "
239do
2410case " $i " in
@@ -29,10 +15,10 @@ case "$i" in
2915
3016auto wlan0
3117iface wlan0 inet dhcp
32- pre-up wpa_supplicant -Dwext -iwlan0 -c$persistent_path /wpa_supplicant.conf -B
18+ pre-up wpa_supplicant -Dwext -iwlan0 -c/etc /wpa_supplicant.conf -B
3319 down killall wpa_supplicant
3420__EOF__
35- cat << __EOF__ > "${TARGET_DIR} /$persistent_path /wpa_supplicant.conf"
21+ cat << __EOF__ > "${TARGET_DIR} /etc /wpa_supplicant.conf"
3622ctrl_interface=/var/run/wpa_supplicant
3723ap_scan=1
3824
@@ -46,12 +32,12 @@ __EOF__
4632
4733auto wlan0
4834iface wlan0 inet static
49- pre-up wpa_supplicant -Dnl80211 -iwlan0 -c$persistent_path /wpa_supplicant.conf -B
35+ pre-up wpa_supplicant -Dnl80211 -iwlan0 -c/etc /wpa_supplicant.conf -B
5036 down killall wpa_supplicant
5137 address 192.168.20.1
5238 netmask 255.255.255.0
5339__EOF__
54- cat << __EOF__ > "${TARGET_DIR} /$persistent_path /wpa_supplicant.conf"
40+ cat << __EOF__ > "${TARGET_DIR} /etc /wpa_supplicant.conf"
5541ctrl_interface=/var/run/wpa_supplicant
5642ap_scan=1
5743ctrl_interface_group=0
You can’t perform that action at this time.
0 commit comments