Some fixes.
This commit is contained in:
parent
b71e60391f
commit
c1f0e11b20
@ -98,16 +98,20 @@ case $1 in
|
|||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
-m|--mount)
|
-m|--mount)
|
||||||
|
storeenv
|
||||||
$PRIV $PREFIX/share/archbox/bin/archboxinit start
|
$PRIV $PREFIX/share/archbox/bin/archboxinit start
|
||||||
;;
|
;;
|
||||||
-u|--umount)
|
-u|--umount)
|
||||||
|
storeenv
|
||||||
$PRIV $PREFIX/share/archbox/bin/archboxinit stop
|
$PRIV $PREFIX/share/archbox/bin/archboxinit stop
|
||||||
;;
|
;;
|
||||||
--remount-run)
|
--remount-run)
|
||||||
|
storeenv
|
||||||
$PRIV $PREFIX/share/archbox/bin/remount_run
|
$PRIV $PREFIX/share/archbox/bin/remount_run
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
--mount-runtime-only)
|
--mount-runtime-only)
|
||||||
|
storeenv
|
||||||
$PRIV $PREFIX/share/archbox/bin/remount_run runtimeonly
|
$PRIV $PREFIX/share/archbox/bin/remount_run runtimeonly
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
@ -1,17 +1,19 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source /etc/archbox.conf
|
source /etc/archbox.conf
|
||||||
|
source /tmp/archbox_env
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
killxdg)
|
killxdg)
|
||||||
umount -l $CHROOT/run
|
umount -l $CHROOT/run
|
||||||
fuser -km $(cat /tmp/archbox_xdg_runtime_dir)
|
fuser -km $XDG_RUNTIME_DIR
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
runtimeonly)
|
runtimeonly)
|
||||||
mkdir -p $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir)
|
mkdir -p $CHROOT$XDG_RUNTIME_DIR
|
||||||
umount -Rl $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir)
|
umount -Rl $CHROOT$XDG_RUNTIME_DIR 2>/dev/null
|
||||||
mount --rbind $(cat /tmp/archbox_xdg_runtime_dir) $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir)
|
mount | grep $CHROOT$XDG_RUNTIME_DIR || \
|
||||||
|
mount --rbind $XDG_RUNTIME_DIR $CHROOT$XDG_RUNTIME_DIR
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user