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
454 B
Bash
Executable File

#!/bin/sh
# /etc/bewan/lib/libdsl
# Common function used by scripts
# setparam must be included
[ ${LIBDSL_LIB:-0} = 1 ] && return
LIBDSL_LIB=1
retrieve_xdsl_mode() {
local adsl vdsl
xdsl_mode=''
adsl=`adslinfo | grep "modulation" | grep "G.992" | wc -l`
if [ "$adsl" -eq 1 ]; then
xdsl_mode="adsl"
else
vdsl=`adslinfo | grep "modulation" | grep "G.993" | wc -l`
if [ "$vdsl" -eq 1 ]; then
xdsl_mode="vdsl"
fi
fi
}