Skip to content

Commit b7f2cd0

Browse files
committed
[rpi] remove wifi wpa persistent path
1 parent d6a00e3 commit b7f2cd0

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

board/raspberrypi/post-build.sh

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,8 @@
33
set -u
44
set -e
55

6-
persistent_path="/root"
7-
86
echo "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-
228
for i in "$@"
239
do
2410
case "$i" in
@@ -29,10 +15,10 @@ case "$i" in
2915
3016
auto wlan0
3117
iface 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"
3622
ctrl_interface=/var/run/wpa_supplicant
3723
ap_scan=1
3824
@@ -46,12 +32,12 @@ __EOF__
4632
4733
auto wlan0
4834
iface 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"
5541
ctrl_interface=/var/run/wpa_supplicant
5642
ap_scan=1
5743
ctrl_interface_group=0

0 commit comments

Comments
 (0)