Last change
on this file since 84 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
|
Rev | Line | |
---|
[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 |
|
---|
| 7 | if [ `id -u` -ne 0 ]; then
|
---|
| 8 | echo "Sorry root only" 1>&2
|
---|
| 9 | exit 128
|
---|
| 10 | fi
|
---|
| 11 |
|
---|
| 12 | ./port-list.sh
|
---|
| 13 |
|
---|
| 14 | # Update port tree
|
---|
| 15 | portsnap update
|
---|
| 16 |
|
---|
| 17 | # Update ports
|
---|
| 18 | NEWPORTS=`pkg_version -qL=`
|
---|
| 19 | portupgrade -r -mBATCH=yes -a $NEWPORTS
|
---|
Note:
See
TracBrowser
for help on using the repository browser.