3
0

run 342 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. exec 2>&1
  3. exec </dev/null
  4. pwd="$PWD"
  5. if="${PWD##*/dhcp_}"
  6. echo "* Upping iface $if"
  7. ip link set dev "$if" up
  8. ##echo "* Powersave disable on $if"
  9. ##iw dev "$if" set power_save off
  10. echo "* Starting wpa_supplicant"
  11. exec \
  12. env - PATH="$PATH" \
  13. softlimit \
  14. setuidgid root \
  15. wpa_supplicant -i "$if" -c "$pwd/wpa_supplicant.conf" -d