X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Fddclient;h=2d210d57efec49ed187c4e1f7efdd046addabcc1;hb=1b6490195147ee6d1098cf255240d60f60c40108;hp=46de4af4382f22db29f261c574ef2b8867ad78d3;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/ddclient b/stage3/pkg/ddclient index 46de4af..2d210d5 100644 --- a/stage3/pkg/ddclient +++ b/stage3/pkg/ddclient @@ -1,22 +1,12 @@ -#!/bin/sh -set -o errexit - -# First argument of this script is the package name - -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list +#!/bin/bash -# Applying patches (if any) -apply_patches ${1} +hvbuild() +{ + 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 @@ -58,6 +48,5 @@ esac exit $? EOF -chmod 740 /var/lib/dhcpc/dhcpcd.exe - -exit $? + chmod 740 /var/lib/dhcpc/dhcpcd.exe +}