summaryrefslogtreecommitdiff
path: root/upgrade-gentoo
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade-gentoo')
-rwxr-xr-xupgrade-gentoo8
1 files changed, 5 insertions, 3 deletions
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