Drop deprecated prog_real=...
[grml-debootstrap.git] / grml-debootstrap
index 01c7665..f1afb19 100755 (executable)
@@ -11,7 +11,6 @@ set -e # exit on any error
 
 # variables {{{
 PN="$(basename $0)"
-prog_real=`readlink -f -- $0`
 VERSION='0.23'
 MNTPOINT="/mnt/debootstrap.$$"
 
@@ -105,7 +104,7 @@ fi
 
 # cmdline handling {{{
 # source external command line parameter-processing script
-. $prog_real.clp
+. /usr/share/grml-debootstrap/functions/cmdlineopts.clp
 
 # == business-logic of command line parameter-processing
 
@@ -119,6 +118,8 @@ fi
   if ! . "$CONFFILES/config" ; then
     eerror "Error reading config file $CONFFILES/config" ; eend 1 ; exit 1
   fi
+  # restore the command line parameter value
+  CONFFILES=$_opt_confdir
 }
 # }}}