1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #!/bin/sh
- exec 2>&1
- exec </dev/null
- pwd="$PWD"
- if="${PWD##*/ifplugd_}"
- echo "* Upping iface $if"
- ip link set dev "$if" up || exec sleep 5
- echo "* Starting ifplugd on $if [$$]"
- exec \
- env - PATH="$PATH" \
- softlimit \
- setuidgid root \
- ifplugd -aqlMns -t3 -u8 -d8 -i "$if" -r "$pwd/ifplugd_handler"
|