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

24 lines
584 B
Bash
Executable File

#!/bin/sh
# /etc/bewan/scripts/ip-down6-lan
# environment variables are defined in the calling script
# setparam is already included by calling script
# LAN network interface is down
# Save parameters
IFDIR=$LAND/$LANID/ip6
if [ -d "$IFDIR" ]; then
rm -f $IFDIR/ipaddr
rm -f $IFDIR/ipmask
rm -f $IFDIR/routers
rm -f $IFDIR/servers
fi
# Include scripts found in /etc/bewan/ip-down6-lan.d directory
trap base_reboot_on_exit EXIT
for script in `find /etc/bewan/ip-down6-lan.d -follow -type f | sort`; do
base_log "$script $LANID" debug
. $script $LANID
done
trap '' EXIT