X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-ddclient;h=46de4af4382f22db29f261c574ef2b8867ad78d3;hb=5b913b7b528bb69a0c90583b8776d6d26b9cb189;hp=7a4df53a4fd106049ff085d71c5a57280b02237a;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage3/cis-ddclient b/stage3/cis-ddclient index 7a4df53..46de4af 100755 --- a/stage3/cis-ddclient +++ b/stage3/cis-ddclient @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name # Reading system configuration informations, functions and package versions. @@ -7,14 +9,14 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} -cd ${LFS_TMP}/${1} && -install ddclient /usr/sbin && -mkdir -p /etc/ddclient && -cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf && +cd ${LFS_TMP}/${1} +install ddclient /usr/sbin +mkdir -p /etc/ddclient +cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf -cat > /var/lib/dhcpc/dhcpcd.exe << "EOF" && +cat > /var/lib/dhcpc/dhcpcd.exe << "EOF" #!/bin/sh ## Update the DNS server unless the IP address is a private address @@ -46,7 +48,7 @@ case "${IPADDR}" in down) ;; new) - logger -t dhcpcd "IP address changed to ${IPADDR}" && + logger -t dhcpcd "IP address changed to ${IPADDR}" ddclient -daemon=0 -syslog -use=ip -ip=${IPADDR} >/dev/null 2>&1 ;; esac @@ -58,5 +60,4 @@ EOF chmod 740 /var/lib/dhcpc/dhcpcd.exe -# Return last error exit $?