2020-12-28 05:22:53 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-11-02 09:51:43 +00:00
|
|
|
|
|
|
|
source /etc/archbox.conf
|
|
|
|
|
2020-11-02 12:36:27 +00:00
|
|
|
case $1 in
|
2020-12-31 16:16:31 +00:00
|
|
|
killxdg)
|
2020-11-02 12:36:27 +00:00
|
|
|
umount -l $CHROOT/run
|
2020-12-31 16:16:31 +00:00
|
|
|
fuser -km $(cat /tmp/archbox_xdg_runtime_dir)
|
|
|
|
exit $?
|
|
|
|
;;
|
|
|
|
runtimeonly)
|
|
|
|
mkdir -p $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir)
|
|
|
|
umount -Rl $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir)
|
|
|
|
mount --rbind $(cat /tmp/archbox_xdg_runtime_dir) $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir)
|
|
|
|
exit $?
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
umount -l $CHROOT/run
|
|
|
|
mount --rbind /run $CHROOT/run
|
|
|
|
exit $?
|
|
|
|
;;
|
2020-11-02 12:36:27 +00:00
|
|
|
esac
|