Skip to content

Commit 2cc9fad

Browse files
committed
add init
1 parent a6183ce commit 2cc9fad

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

alpine/aarch64/init

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
mount -t proc none /proc
4+
mount -t sysfs none /sys
5+
mkdir /dev/pts
6+
mount -t devpts devpts /dev/pts
7+
mount -t tmpfs tmpfs /tmp
8+
9+
echo "Configuring networking..."
10+
ifconfig eth0 10.0.2.15 netmask 255.255.255.0
11+
route add default gw 10.0.2.2
12+
ifconfig lo 127.0.0.1 netmask 255.0.0.0
13+
14+
echo -e "Boot took $(cut -d' ' -f1 /proc/uptime) seconds."
15+
16+
exec /sbin/init

0 commit comments

Comments
 (0)