summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2025-04-18 13:11:54 +0200
committerLuke Bratch <luke@bratch.co.uk>2025-04-18 13:11:54 +0200
commit45a3e5eda14985a3f5dc045f143522747747f8de (patch)
tree78514db5dc87f50067fc0f34a507e9a1432a3b51
parentf49bb04b3d7ea6a8a3038db4d4ec10ba7958d489 (diff)
Add etc-update.
-rwxr-xr-xportage-update.sh8
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