Advertisement
beechfuzz

eap_proxy.sh

Aug 23rd, 2019
931
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. #!/bin/sh
  2. # Startup script for eap_proxy.py. Place eap_proxy.py in /config/scripts and
  3. # place this in /config/scripts/post-config.d
  4. #
  5. IF_WAN=eth0
  6. IF_ROUTER=eth1
  7. CONFIG_OPTIONS=(
  8.     --restart-dhcp --ignore-when-wan-up --ignore-logoff --ping-gateway --set-mac)
  9. DAEMON_OPTIONS=(--daemon --pidfile /var/run/eap_proxy.pid --syslog)
  10. /usr/bin/python /config/scripts/eap_proxy.py \
  11.     "$IF_WAN" "$IF_ROUTER" "${CONFIG_OPTIONS[@]}" "${DAEMON_OPTIONS[@]}" &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement