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