Add basic README.md with an example
CI / build (push) Successful in 10s

This commit is contained in:
2026-08-26 23:32:37 +02:00
parent 6af8660f8d
commit 0bc14cbeff
3 changed files with 51 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh
# Special folders
mkdir -p /dev /proc /sys
[ -c /dev/console ] || mknod -m 600 /dev/console c 5 1
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t devtmpfs dev /dev
# Networking
echo slim > /proc/sys/kernel/hostname
modprobe virtio_net
ip link set lo up 2>/dev/null
ip link set eth0 up 2>/dev/null
udhcpc -i eth0 -f -q # Get DHCP lease
echo
echo 'Welcome to slim!'
echo
# Run interactive shell
/bin/sh </dev/console >/dev/console 2>&1
poweroff -f
while true; do
sleep 1
poweroff -f
done