123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/sh
- PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
- export PATH
- cat << EOF > /usr/local/sbin/fix_ppp_vrf.gen
- #!/bin/sh
- while ! ip a s dev ppp0 | grep -q "inet "; do
- sleep 1
- done
- ip link set ${1} master vrf_external
- ip link set ${1} up
- ip route add default via ${5} table 1023
- ip vrf exec vrf_external wget --max-redirect=0 --header="Host: noc.ffho.net" http://80.70.180.55/et-phone-home/$(hostname -f)
- EOF
- chmod 755 /usr/local/sbin/fix_ppp_vrf.gen
- at -f /usr/local/sbin/fix_ppp_vrf now
|