diff options
author | Patrick Simianer <p@simianer.de> | 2016-10-26 08:47:45 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-10-26 08:47:45 +0200 |
commit | 509a2676a3415ef81105380b06dff74169cb396a (patch) | |
tree | 65da8cff6725cadfddea7b5c4977c8cf6cace5cd /upgrade-gentoo | |
parent | 88877e6fca65e57513d4d2f73450884b416d3153 (diff) |
upgrade-gentoo: diff mount
Diffstat (limited to 'upgrade-gentoo')
-rwxr-xr-x | upgrade-gentoo | 8 |
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 |