1
0
This repository has been archived on 2025-01-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Anderson Luiz Alves 0464e230c1 stock 103961
2017-07-30 16:48:04 -03:00

25 lines
666 B
Bash
Executable File

#!/bin/sh
# /etc/bewan/scripts/ip-fail6
# included in /etc/bewan/scripts/ip-fail6-dhcp
# included in /etc/bewan/scripts/ip-fail6-ppp
# setparam is already included by calling script
# environment variable
# WANID wan interface index
# IFFLAGS wan interface flags
WANID=${WANID:-0}
base_log "$SCRIPTD/ip-fail6 $WANID started" debug
# Include scripts found in /etc/bewan/ip-fail6.d directory
trap base_reboot_on_exit EXIT
for script in `find /etc/bewan/ip-fail6.d -follow -type f | sort`; do
base_log "$script $WANID" debug
. $script $WANID
done
trap '' EXIT
[ ! -f $RCRUNNING ] && base_call_initd 'inittab'
base_log "$SCRIPTD/ip-fail6 $WANID exited" debug