Changeset 182
- Timestamp:
- Sep 22, 2010, 9:02:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freebsd-mgnt/system-update.sh
r119 r182 4 4 # Licence: BSDLike - http://rickvanderzwet.nl/LICENSE 5 5 # Rick van der Zwet <info@rickvanderzwet.nl> 6 7 . /etc/rc.subr 6 8 7 9 if [ `id -u` -ne 0 ]; then … … 11 13 12 14 DIRNAME=`dirname $0` 15 BATCH=${BATCH-""} 13 16 14 17 $DIRNAME/port-list.sh 15 18 16 19 # Update port tree 20 echo "# Updating portstree .." 17 21 portsnap update 18 22 19 # Update ports 23 # Update ports listing 24 echo "# Checking ports which needs updating ..." 20 25 NEWPORTS=`pkg_version -qL=` 26 27 if [ -z "$NEWPORTS" ]; then 28 echo "# System up2date" 29 exit 0 30 fi 31 32 if [ -z "$BATCH" ]; then 33 # Make sure we have read the (new) UPDATING announcements 34 less /usr/ports/UPDATING 35 36 echo $NEWPORTS 37 # And agree to the terms of the game 38 echo -n "Do you like to upgrade the affected ports [no]: "; read INPUT 39 40 INPUT=${INPUT:-"no"} 41 checkyesno INPUT || exit 1 42 echo "Foo" 43 fi 44 21 45 portupgrade -r -mBATCH=yes -a $NEWPORTS
Note:
See TracChangeset
for help on using the changeset viewer.