From 509a2676a3415ef81105380b06dff74169cb396a Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 26 Oct 2016 08:47:45 +0200 Subject: upgrade-gentoo: diff mount --- upgrade-gentoo | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'upgrade-gentoo') diff --git a/upgrade-gentoo b/upgrade-gentoo index 7e6933a..026c4fc 100755 --- a/upgrade-gentoo +++ b/upgrade-gentoo @@ -1,8 +1,9 @@ #!/bin/zsh -if grep -qs '/media/dock' /proc/mounts; then - mkdir /media/dock/tmp - chmod 777 /media/dock/tmp +if grep -qs '/media/ext_sd' /proc/mounts; then + mount -o remount,nousers,noauto /media/ext_sd + mkdir /media/ext_sd/tmp + chmod 777 /media/ext_sd/tmp else echo "External disk not mounted, exiting." exit @@ -30,4 +31,5 @@ rm -rf /usr/portage mkdir /usr/portage mount portage rm -r /media/dock/tmp +mount -o remount,users,auto /media/ext_sd -- cgit v1.2.3