blob: 56a054b4ac00150e43ee447af6f3d097a6e3a967 (
plain)
1
2
3
4
5
6
|
PGM=ez-ipupdate
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -e /etc/$PGM.conf ] && {
[ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f1) ] && [ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f2) ] && /usr/sbin/$PGM -c /etc/$PGM.conf &
}
}
|