quarks/scripts/update_box.sh

23 lines
467 B
Bash
Raw Normal View History

2012-08-12 04:19:25 +00:00
#!/bin/sh
# set -x
CPUS=$(nproc)
2012-08-12 04:19:25 +00:00
emerge --update --deep --newuse --pretend --jobs ${CPUS} world
2012-08-12 04:19:25 +00:00
echo "Press Ctrl-C to abort..."
read
# Trigger mount
# ls /mnt/portage/distfiles /mnt/portage/portage > /dev/null
emerge --update --deep --newuse --keep-going --jobs ${CPUS} world
2012-08-12 04:19:25 +00:00
# echo "Fixing pax flags..."
# ${SCRIPT_DIR}/fix_grsec.sh
echo "Going to remove unneeded packages ..."
emerge --depclean --jobs ${CPUS}
2012-08-12 04:19:25 +00:00
echo "Fixing dependencies..."
revdep-rebuild -i