X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-tools-cn.git;a=blobdiff_plain;f=functions.sh;h=75014f0f6694afeacd64d5c44586360921b83e5d;hp=19116f8e5ec0bb66f6e509e89e63e58d7e6ae4b2;hb=84585bc441d81f0e9d0b1cc514d88a97efe8a56f;hpb=b302e2ad8e40fff725d00b3bcbb67324ebc08e7c diff --git a/functions.sh b/functions.sh index 19116f8..75014f0 100644 --- a/functions.sh +++ b/functions.sh @@ -137,12 +137,12 @@ cp_get_netaddr() { CP_ECHO_RETURN="$echo_return" } -# by ico, Tue, 15 Mar 2005 14:04:21 +0100 -cp_backup_conffile() { - cp_check_and_backup "$@" +cp_check_and_backup() { + cp_backup_conffile -r "$@" } -cp_check_and_backup() { +# by ico, Tue, 15 Mar 2005 14:04:21 +0100 +cp_backup_conffile() { [ "$CP_SCRIPT_DEBUG" ] && set -vx local file_bak check did