mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
working persistence
This commit is contained in:
parent
aae6fff340
commit
f0b7214a07
@ -1,7 +1,8 @@
|
||||
#!/bin/bash
|
||||
PUTERUSERNAME=$( cat /proc/cmdline | sed -n 's/.*puterusername=\(.*\)/\1/p' )
|
||||
|
||||
echo > /tmp/restore-in-progress
|
||||
touch /tmp/restore-in-progress
|
||||
tar -C / -zxvf /puter/$PUTERUSERNAME/emulatorstate.apkovl.tar.gz # no worries if this errors, its just the first boot
|
||||
apk add --no-cache $(cat /etc/apk/world)
|
||||
rm /tmp/restore-in-progress
|
||||
touch /tmp/puter-restore-done
|
@ -9,6 +9,7 @@ start() {
|
||||
ip link set lo up
|
||||
echo "nameserver 192.168.86.1" > /etc/resolv.conf
|
||||
echo "puter.local" > /etc/hostname
|
||||
puter-restore &
|
||||
eend $?
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user