summaryrefslogtreecommitdiff
path: root/busybox.morph
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.morph')
-rw-r--r--busybox.morph17
1 files changed, 13 insertions, 4 deletions
diff --git a/busybox.morph b/busybox.morph
index 188edf4dc..f92f4ff0e 100644
--- a/busybox.morph
+++ b/busybox.morph
@@ -57,8 +57,10 @@ configure-commands:
build-commands:
- make
- |
- for f in ifup@.service ntpd.service crond.service; do
- sed -e 's|@rootprefix@||g' "systemd-units/$f.in" >"systemd-units/$f";
+ for fin in systemd-units/*.in
+ do
+ f=$(echo "$fin" | sed 's/\.in$//')
+ sed -e 's|@rootprefix@||g' "$fin" >"$f";
done
install-commands:
@@ -91,5 +93,12 @@ install-commands:
- cp examples/udhcp/simple.script "$DESTDIR$PREFIX"/share/udhcpc/default.script
# Set up NTP
- - cp scripts/ntpd-set.sh "$DESTDIR$PREFIX"/bin/ntpd-set.sh
- - chmod 6755 "$DESTDIR$PREFIX"/bin/ntpd-set.sh
+ - install scripts/run-ntpd-with-config "$DESTDIR$PREFIX"/sbin/.
+ - install -d "$DESTDIR/etc"
+ - |
+ cat << EOF > "$DESTDIR/etc/ntpd.conf"
+ server 0.pool.ntp.org
+ server 1.pool.ntp.org
+ server 2.pool.ntp.org
+ server 3.pool.ntp.org
+ EOF