r9:
[carnet-tools-cn.git] / functions.sh
index 8c2ec00..45d15e2 100644 (file)
@@ -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