#!/bin/bash # ------- # netconfig-client cpkg preconfig # (c) 2008 Luis Garcia # -------- set -e # PATH y variables PATH="/sbin:/bin:/usr/sbin:/usr/bin" # Funciones exit_message(){ echo "$1" >&2 exit 1 } # main # libs LIB_FILE="/usr/share/lliurex/llxcfg-netconfig/llxcfg-netconfig.sh" [ -e ${LIB_FILE} ] || exit_message "Missing library file ${LIB_FILE}!!" . ${LIB_FILE} # install misc files llxcfg-netconfig-client getdirs "$NETCFG_INSTDIR" |while read d ; do find "$d" -xtype f -printf "%P\n" |while read f ; do skel-install -p "${d}/${f}" "$f" done done exit 0