diff options
Diffstat (limited to 'upgrade-gentoo')
-rwxr-xr-x | upgrade-gentoo | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/upgrade-gentoo b/upgrade-gentoo index af56971..7e6933a 100755 --- a/upgrade-gentoo +++ b/upgrade-gentoo @@ -1,5 +1,12 @@ #!/bin/zsh +if grep -qs '/media/dock' /proc/mounts; then + mkdir /media/dock/tmp + chmod 777 /media/dock/tmp +else + echo "External disk not mounted, exiting." + exit +fi cd /usr rsync -avv portage/ portage_/ umount portage @@ -22,4 +29,5 @@ mksquashfs portage portage.squashfs -comp xz rm -rf /usr/portage mkdir /usr/portage mount portage +rm -r /media/dock/tmp |