mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Little helper scripts to upgrade your machinery.
This commit is contained in:
parent
ff4726b2bb
commit
50f1d25176
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=19630
27
Tools/portbuild/scripts/doupgrademach
Executable file
27
Tools/portbuild/scripts/doupgrademach
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# configurable variables
|
||||
master=bento
|
||||
chroot=/a/asami/chroot
|
||||
kernelconfig=CLUSTER
|
||||
|
||||
PATH=/sbin:/usr/sbin:$PATH
|
||||
|
||||
if [ -f /usr/src/Makefile ]; then
|
||||
mv /usr/src /usr/old.src
|
||||
mv /usr/obj /usr/old.obj
|
||||
mkdir /usr/src /usr/obj
|
||||
fi
|
||||
|
||||
mount $master:$chroot/usr/src /usr/src
|
||||
mount $master:$chroot/usr/obj /usr/obj
|
||||
|
||||
echo "installing world"
|
||||
cd /usr/src && make installworld > /usr/tmp/make.0 2>&1 </dev/null
|
||||
cd /sys/compile/$kernelconfig && make install
|
||||
|
||||
cd /
|
||||
|
||||
umount /usr/src /usr/obj
|
||||
|
||||
reboot
|
14
Tools/portbuild/scripts/upgrademach
Executable file
14
Tools/portbuild/scripts/upgrademach
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
# usage: $0 machine
|
||||
|
||||
if [ $# != 1 ]; then
|
||||
echo "usage: $0 machine"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
unset DISPLAY
|
||||
script=/a/asami/portbuild/scripts/doupgrademach
|
||||
|
||||
scp -q -p $script $1:$script
|
||||
ssh -n $1 $script
|
Loading…
Reference in New Issue
Block a user