initial import (Boeing r1752, NRL r878)
This commit is contained in:
commit
f8f46d28be
394 changed files with 99738 additions and 0 deletions
21
packaging/bsd/core-kernel-deinstall-8.x.sh
Executable file
21
packaging/bsd/core-kernel-deinstall-8.x.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
PREV=""
|
||||
|
||||
if [ ! -e "/boot/kernel.old" ] ; then
|
||||
if [ ! -e "/boot/GENERIC" ] ; then
|
||||
echo Previous kernel does not exist in /boot/kernel.old or /boot/GENERIC !
|
||||
exit 1;
|
||||
else
|
||||
PREV="/boot/GENERIC"
|
||||
fi;
|
||||
else
|
||||
PREV="/boot/kernel.old"
|
||||
fi;
|
||||
|
||||
echo Removing current kernel...
|
||||
chflags -R noschg /boot/kernel
|
||||
rm -rf /boot/kernel
|
||||
echo Restoring previous kernel from $PREV...
|
||||
mv $PREV /boot/kernel
|
||||
|
||||
exit 0;
|
Loading…
Add table
Add a link
Reference in a new issue