Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored Dec 17, 2024
1 parent 6050bab commit a0dd61f
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions package/debian-chroot/package
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,12 @@ debian-chroot() {
echo "Error: debian-chroot has running processes"
exit 1
fi
if ! grep -q /opt/lib/debian-chroot /proc/mounts; then
echo "debian-chroot is not mounted"
exit 0
fi
do_umount() {
mp=$1
shift
if mountpoint -q $mp; then
/bin/umount "$@" $mp
fi
}
echo "Unmounting debian-chroot"
do_umount /opt/lib/debian-chroot/mnt/remarkable/opt
do_umount /opt/lib/debian-chroot/mnt/remarkable/home
do_umount /opt/lib/debian-chroot/mnt/remarkable/var/lib/uboot
do_umount /opt/lib/debian-chroot/mnt/remarkable
do_umount /opt/lib/debian-chroot/var/volatile
do_umount /opt/lib/debian-chroot/tmp
do_umount /opt/lib/debian-chroot/run
do_umount /opt/lib/debian-chroot/sys -l
do_umount /opt/lib/debian-chroot/proc
do_umount /opt/lib/debian-chroot/dev -l
do_umount /opt/lib/debian-chroot
umount -Rl /opt/lib/debian-chroot
umount -Rl /home/root/.entware/lib/debian-chroot
}
postremove() {
rm -rf /opt/lib/debian-chroot
echo "Please reboot your system"
}
}

Expand Down

0 comments on commit a0dd61f

Please sign in to comment.