Skip to content

Commit

Permalink
feat: add new initfile version
Browse files Browse the repository at this point in the history
Signed-off-by: BioTheWolff <47079795+BioTheWolff@users.noreply.github.com>
  • Loading branch information
BioTheWolff committed Apr 26, 2024
1 parent ccaaf20 commit 2b38a1a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/fs-gen/resources/initfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
#!/bin/sh
#! /bin/sh
#
# Cloudlet initramfs generation
#
mount -t devtmpfs dev /dev
mount -t proc proc /proc
mount -t sysfs sysfs /sys

ip link set up dev lo

exec /sbin/getty -n -l /bin/sh 115200 /dev/console
poweroff -f
slattach -L /dev/ttyS1&

while ! ifconfig sl0 &> /dev/null; do
sleep 1
done

ifconfig sl0 172.30.0.11 netmask 255.255.0.0 up

/agent

reboot

0 comments on commit 2b38a1a

Please sign in to comment.