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

17 lines
431 B
Bash
Executable File

#!/bin/sh
# We want to know when we lost connectivity or when we have an ip-up on internet wan
switch_off_ipconf()
{
local wanid=${WANID:-0}
local internet; eval internet=`cat $WAND/internet 2>/dev/null`
# If we are called from waneth-down or adsl-down, WANID == 0
# If we are called from ip-up, we only want internet wan
[ "$wanid" != 0 ] && [ "$wanid" != "$internet" ] && return
ledctl sflag_ipconf
}
switch_off_ipconf