Initial commit.
This commit is contained in:
commit
d276b157d0
8
archbox
Executable file
8
archbox
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
CHROOT="/var/archlinux/root.x86_64"
|
||||
COMMAND=$(echo $@ | tr ' ' '\ ')
|
||||
|
||||
doas cp /etc/resolv.conf $CHROOT/etc/resolv.conf
|
||||
[[ -z $@ ]] && doas chroot $CHROOT /bin/su lemniskett \
|
||||
|| doas chroot $CHROOT su -c "$COMMAND" lemniskett
|
15
sv/run
Executable file
15
sv/run
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
CHROOT="/var/archlinux/root.x86_64"
|
||||
|
||||
mount -R /home $CHROOT/home
|
||||
mount -t proc /proc $CHROOT/proc
|
||||
mount -R /tmp $CHROOT/tmp
|
||||
mount -R /sys $CHROOT/sys
|
||||
mount -R /dev $CHROOT/dev
|
||||
mount -R /run $CHROOT/run
|
||||
mount -R /var/lib/dbus $CHROOT/var/lib/dbus
|
||||
mount -R /lib/modules $CHROOT/lib/modules
|
||||
mount -R /boot $CHROOT/boot
|
||||
|
||||
while true; do sleep 10800; done
|
Loading…
Reference in New Issue
Block a user