From 384ef12f9aee5ba2bab74650428ce3033c6f43c5 Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Thu, 25 Oct 2018 15:42:23 -0400 Subject: [PATCH] init script for tiny config with networking --- initrd/bin/tiny-init | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 initrd/bin/tiny-init diff --git a/initrd/bin/tiny-init b/initrd/bin/tiny-init new file mode 100755 index 00000000..cc839163 --- /dev/null +++ b/initrd/bin/tiny-init @@ -0,0 +1,16 @@ +#!/bin/ash +# Setup the tiny environment for network routing +. /etc/functions + +warn "Starting networks" +ifconfig lo 127.0.0.1 +ifconfig eth0 10.0.2.15 + +# Setup the sshd server +warn "Starting sshd" +mkdir /etc/dropbear +echo root::0:0:root:/:/bin/ash > /etc/passwd +dropbear -B -R + +# Setup the recovery shell +recovery "Interactive shell"