archbox/remount_run.bash
2020-12-28 12:22:53 +07:00

15 lines
218 B
Bash
Executable File

#!/usr/bin/env bash
source /etc/archbox.conf
case $1 in
killxdg)
umount -l $CHROOT/run
fuser -km $(cat /tmp/archbox_xdg_runtime_dir)
;;
*)
umount -l $CHROOT/run
mount --rbind /run $CHROOT/run
;;
esac