diff options
Diffstat (limited to 'portage-update.sh')
-rwxr-xr-x | portage-update.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/portage-update.sh b/portage-update.sh index 8983559..0330162 100755 --- a/portage-update.sh +++ b/portage-update.sh @@ -28,6 +28,8 @@ do ;; --skip-preserved-rebuild) export SKIP_PRESERVED_REBUILD="true" # In case we don't want to do an "emerge @preserved-rebuild" ;; + --skip-etc-update) export SKIP_ETC_UPDATE="true" # In case we don't want to do an "etc-update" + ;; --*) echo "bad argument '$1'" ; exit 1 ;; *) echo "unexpected argument '$1'" ; exit 1 @@ -104,6 +106,12 @@ echo 'rm -r '"$PORTAGE_TEMP" #rm -r "$PORTAGE_TEMP" || exit 1 echo "Would do rm -r $PORTAGE_TEMP here, do not have the balls yet due to rm -ring a variable" || exit 1 +# Run etc-update, unless skipped +if [ -z ${SKIP_ETC_UPDATE+x} ]; then + echo 'etc-update' + etc-update +fi + # Print disk space echo 'df -H' df -H || exit 1 |