mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
init script for tiny config with networking
This commit is contained in:
parent
507c7d6852
commit
384ef12f9a
16
initrd/bin/tiny-init
Executable file
16
initrd/bin/tiny-init
Executable file
@ -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"
|
Loading…
Reference in New Issue
Block a user