mirror of
https://github.com/sheumann/hush.git
synced 2024-08-15 02:29:00 +00:00
22 lines
342 B
Bash
Executable File
22 lines
342 B
Bash
Executable File
#!/bin/sh
|
|
|
|
exec 2>&1
|
|
exec </dev/null
|
|
|
|
pwd="$PWD"
|
|
|
|
if="${PWD##*/dhcp_}"
|
|
|
|
echo "* Upping iface $if"
|
|
ip link set dev "$if" up
|
|
|
|
##echo "* Powersave disable on $if"
|
|
##iw dev "$if" set power_save off
|
|
|
|
echo "* Starting wpa_supplicant"
|
|
exec \
|
|
env - PATH="$PATH" \
|
|
softlimit \
|
|
setuidgid root \
|
|
wpa_supplicant -i "$if" -c "$pwd/wpa_supplicant.conf" -d
|