2009-11-13 01:35:46 +00:00
|
|
|
post_install() {
|
2010-07-06 12:27:46 +00:00
|
|
|
echo -e "\033[1mPlugbox Kernel Installation/Upgrade\033[0m"
|
|
|
|
echo "Where do you have Plugbox installed?"
|
|
|
|
echo ""
|
|
|
|
echo "Enter the number of USB/SD Card, NAND, or to skip installation."
|
|
|
|
echo ""
|
|
|
|
echo "1. USB/SD Card"
|
|
|
|
echo "2. NAND"
|
|
|
|
echo "3. Skip installation"
|
|
|
|
read INSTALLLOCATION
|
|
|
|
|
|
|
|
if [ $INSTALLLOCATION -eq 1 ]; then
|
|
|
|
rm -rf /boot/uImage
|
|
|
|
/usr/share/plugapps/kernel/README-2.6.34.1 --rootkernel
|
|
|
|
mv /boot/sheeva-2.6.34.1-uImage /boot/uImage
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $INSTALLLOCATION -eq 2 ]; then
|
|
|
|
/usr/share/plugapps/kernel/README-2.6.34.1 --nandkernel
|
|
|
|
fi
|
2009-11-13 01:35:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2010-02-05 17:45:00 +00:00
|
|
|
post_install
|
2009-11-13 01:35:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
KERNEL_VERSION=.*
|
|
|
|
}
|
|
|
|
|
|
|
|
op=$1
|
|
|
|
shift
|
|
|
|
$op $*
|