From 72512d6bac7fff00ed219e8021bc001e50943310 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 5 Apr 2018 00:16:32 +0200 Subject: [PATCH] Bump init version Signed-off-by: David Oberhollenzer --- board/alix/INIT | 1 + board/rpi3/INIT | 1 + pkg/init/build | 12 ++++++------ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/board/alix/INIT b/board/alix/INIT index 1b494f9..2b383fb 100644 --- a/board/alix/INIT +++ b/board/alix/INIT @@ -1 +1,2 @@ GETTY_TTY="ttyS0" +HWCLOCK="yes" diff --git a/board/rpi3/INIT b/board/rpi3/INIT index 52c76dc..df1089c 100644 --- a/board/rpi3/INIT +++ b/board/rpi3/INIT @@ -1 +1,2 @@ GETTY_TTY="tty1 tty2 tty3 tty4 tty5 tty6 tty7" +HWCLOCK="no" diff --git a/pkg/init/build b/pkg/init/build index ec2d193..fb6d6b8 100755 --- a/pkg/init/build +++ b/pkg/init/build @@ -1,8 +1,8 @@ VERSION="0.1" SRCDIR="init-${VERSION}" -TARBALL="${SRCDIR}.tar.gz" +TARBALL="${SRCDIR}.tar.xz" URL="http://infraroot.at/pygos" -SHA256SUM="56fb57c7cc1b869642028497f81ea20f42d17821cd60af3d3b6a58170123f750" +SHA256SUM="eb317583e0fb8bb8a50e1229128e0fea0c4f18cbedbeec79fcf3e742679a45e1" DEPENDS="toolchain" prepare() { @@ -34,13 +34,13 @@ deploy() { source "$SCRIPTDIR/product/$PRODUCT/INIT" fi - for svc in hostname loopback sysctl hwclock sysinit; do - ln -s "/share/init/$svc" "$DEPLOY/etc/init.d/$svc" - done + if [ "x$HWCLOCK" == "xyes" ]; then + ln -s "/share/init/hwclock" "$DEPLOY/etc/init.d/hwclock" + fi for svc in $GETTY_TTY; do ln -s "/share/init/agetty" "$DEPLOY/etc/init.d/agetty@$svc" done - unset -v i GETTY_TTY + unset -v i GETTY_TTY HWCLOCK }