autoinst

scripts to make installation of custom debian easier and more automated
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

commit 2f143b433b729fb81afc4da87e2f642c984d65e1
parent 8d0cee74bb0ae3b6128641846543f05e59c4a911
Author: Morel BĂ©renger <berenger.morel@neutralite.org>
Date:   Thu, 14 Nov 2019 15:05:05 +0100

implemented udhcpc template + common file for run

Diffstat:
Aetc/runit/common | 18++++++++++++++++++
Aetc/runit/dhcpc.run | 6++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/etc/runit/common b/etc/runit/common @@ -0,0 +1,18 @@ +#!/bin/sh + +exec 2>&1 +exec 0<&- +set -x + +SVNAME="$(basename $(pwd))" + +printf "Preparing %s launch...\n" $SVNAME +test -f conf && . ./conf +if test "$SVNAME" = "log" +then + SVLOG="$(basename $(dirname $(pwd)))" + SVNAME="${SVLOG}/${SVNAME}" + AUTO_ROTATE=${AUTO_ROTATE:-"no"} +fi + +test "yes" = ${AUTO_ROTATE:-"yes"} && sv alarm "$SVNAME/log" diff --git a/etc/runit/dhcpc.run b/etc/runit/dhcpc.run @@ -0,0 +1,6 @@ +#!/bin/sh + +. /etc/runit/common + +printf "Preparation done, starting self.\n" +exec chpst -b udhcpc busybox -i ${IFACE:-$(basename $(pwd))} -R -f