X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=functions.sh;h=45d15e299dcc42bf3c6661936550a695ee299906;hb=f26d82170aa7aaa0ea704d214e4793cb0d20862a;hp=8c2ec0005b3bfe9763c8df88ed0ebe83535abd44;hpb=97afc08d7554ded87ed5ff7b285cbe4e863d6634;p=carnet-upgrade.git diff --git a/functions.sh b/functions.sh index 8c2ec00..45d15e2 100644 --- a/functions.sh +++ b/functions.sh @@ -61,7 +61,7 @@ cp_get_ifdefault() { } # by ico, Tue, 15 Mar 2005 14:04:21 +0100 -cp_get_cidr() { +cp_get_netaddr() { [ "$CP_SCRIPT_DEBUG" ] && set -vx local netmask ipaddress interface cidr echo_return echo_return="$CP_ECHO_RETURN" # since we're making our own calls @@ -77,20 +77,20 @@ cp_get_cidr() { fi if ! ifconfig $interface 2> /dev/null >> /dev/null; then - [ "$CP_VERBOSE" ] || echo "cp_get_cidr: $interface: No such interface" + [ "$CP_VERBOSE" ] || echo "cp_get_netaddr: $interface: No such interface" goto return1 fi cp_get_ifaddr "$interface" ipaddress="$RET" if [ -z $ipaddress ]; then - [ "$CP_VERBOSE" ] || echo "cp_get_cidr: $interface: No such ipaddress" + [ "$CP_VERBOSE" ] || echo "cp_get_netaddr: $interface: No such ipaddress" goto return1 fi cp_get_ifmask "$interface" netmask="$RET" if [ -z $netmask ]; then - [ "$CP_VERBOSE" ] || echo "cp_get_cidr: $interface: No such netmask" + [ "$CP_VERBOSE" ] || echo "cp_get_netaddr: $interface: No such netmask" fi if [ "$netmask" = "255.255.255.255" ]; then @@ -111,7 +111,7 @@ cp_get_cidr() { # by ico, Tue, 15 Mar 2005 14:04:21 +0100 cp_backup_conffile() { - [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx + [ "$CP_SCRIPT_DEBUG" ] && set -vx local file_bak if [ -z $1 ]; then