Denys Vlasenko | d8330ca | 2016-09-20 18:09:00 +0200 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | exec 2>&1 | ||||
4 | exec </dev/null | ||||
5 | |||||
6 | pwd="$PWD" | ||||
7 | |||||
8 | if="${PWD##*/dhcp_}" | ||||
9 | |||||
10 | echo "* Upping iface $if" | ||||
11 | ip link set dev "$if" up | ||||
12 | |||||
13 | ##echo "* Powersave disable on $if" | ||||
14 | ##iw dev "$if" set power_save off | ||||
15 | |||||
16 | echo "* Starting wpa_supplicant" | ||||
17 | exec \ | ||||
18 | env - PATH="$PATH" \ | ||||
19 | softlimit \ | ||||
20 | setuidgid root \ | ||||
21 | wpa_supplicant -i "$if" -c "$pwd/wpa_supplicant.conf" -d |