source: freebsd-mgnt/system-update.sh@ 90

Last change on this file since 90 was 84, checked in by Rick van der Zwet, 15 years ago

Administering BSD machines the easy way

  • Property svn:executable set to *
File size: 354 bytes
RevLine 
[84]1#!/bin/sh
2# FreeBSD system upgade script
3#
4# Licence: BSDLike - http://rickvanderzwet.nl/LICENSE
5# Rick van der Zwet <info@rickvanderzwet.nl>
6
7if [ `id -u` -ne 0 ]; then
8 echo "Sorry root only" 1>&2
9 exit 128
10fi
11
12./port-list.sh
13
14# Update port tree
15portsnap update
16
17# Update ports
18NEWPORTS=`pkg_version -qL=`
19portupgrade -r -mBATCH=yes -a $NEWPORTS
Note: See TracBrowser for help on using the repository browser.