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

Last change on this file since 150 was 119, checked in by Rick van der Zwet, 14 years ago

Relative file location the proper way

  • Property svn:executable set to *
File size: 383 bytes
Line 
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
12DIRNAME=`dirname $0`
13
14$DIRNAME/port-list.sh
15
16# Update port tree
17portsnap update
18
19# Update ports
20NEWPORTS=`pkg_version -qL=`
21portupgrade -r -mBATCH=yes -a $NEWPORTS
Note: See TracBrowser for help on using the repository browser.