commit 6842440a1730399ffa4803f7004218c302f694d4
parent 9f056db536e7c56885c9044ec6407cb38b11a5d0
Author: parazyd <parazyd@dyne.org>
Date: Tue, 11 Oct 2016 15:18:02 +0200
add global extra_packages
Diffstat:
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,2 +1,3 @@
tmp
PASSING
+rsyncsdk.sh
diff --git a/config b/config
@@ -40,3 +40,6 @@ export PATH="$R/gcc/armv7-devuan-linux-gnueabihf/bin:$PATH:/sbin"
## static qemu arm binary
qemu_bin="/usr/bin/qemu-arm-static" # Devuan
#qemu_bin="/usr/bin/qemu-arm" # Gentoo
+
+## extra_packages for all images
+extra_packages=(wpasupplicant rdate)
diff --git a/lib/helpers b/lib/helpers
@@ -104,6 +104,8 @@ copy-kernel-config() {
write-fstab() {
fn write-fstab
+ req=(strapdir)
+ ckreq || return 1
cat <<EOF | sudo tee ${strapdir}/etc/fstab ${TEEVERBOSE}
## <file system> <mount point> <type> <options> <dump><pass>
## proc
@@ -116,3 +118,13 @@ proc /proc proc nodev,noexec,nosuid 0 0
/dev/mmcblk0p1 /boot vfat noauto 0 0
EOF
}
+
+rdate-to-rclocal() {
+ fn rdate-to-rclocal
+ req=(strapdir)
+ ckreq || return 1
+
+ notice "adding rdate to rc.local"
+ sed -i -e "s/exit 0/rdate -s pool.ntp.org &/" $strapdir/etc/rc.local
+ print "exit 0" | sudo tee -a $strapdir/etc/rc.local ${TEEVERBOSE}
+}