initial import (Boeing r1752, NRL r878)
This commit is contained in:
commit
f8f46d28be
394 changed files with 99738 additions and 0 deletions
27
packaging/bsd/core-kernel-preinstall-8.x.sh
Executable file
27
packaging/bsd/core-kernel-preinstall-8.x.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "x$2" = "xPOST-INSTALL" ]
|
||||
then
|
||||
echo Please reboot this machine to enable the new CORE kernel.
|
||||
exit 0;
|
||||
fi;
|
||||
|
||||
# PRE-INSTALL
|
||||
# save the GENERIC kernel
|
||||
OLDNAME=`strings /boot/kernel/kernel | tail -n 1`
|
||||
if [ "x$OLDNAME" = "xGENERIC" ]
|
||||
then
|
||||
chflags -R noschg /boot/kernel
|
||||
mv /boot/kernel /boot/GENERIC
|
||||
exit 0;
|
||||
fi;
|
||||
# get rid of /boot/kernel.old if it is in the way
|
||||
if [ -e "/boot/kernel.old" ] ; then
|
||||
chflags -R noschg /boot/kernel.old
|
||||
rm -rf /boot/kernel.old
|
||||
fi;
|
||||
|
||||
chflags -R noschg /boot/kernel
|
||||
mv /boot/kernel /boot/kernel.old
|
||||
|
||||
exit 0;
|
Loading…
Add table
Add a link
Reference in a new issue