116 |
then |
then |
117 |
liloConfig="" |
liloConfig="" |
118 |
bootPrefix=/boot |
bootPrefix=/boot |
119 |
|
extlinuxConfig=$(readlink -f /etc/extlinux.conf 2>/dev/null) |
120 |
ubootDir=${UBOOT_DIR:-"/boot"} |
ubootDir=${UBOOT_DIR:-"/boot"} |
121 |
ubootScript=$ubootDir/${UBOOT_SCR:-"boot.scr"} |
ubootScript=$ubootDir/${UBOOT_SCR:-"boot.scr"} |
122 |
ubootKList=${UBOOT_KLIST:-"klist.txt"} |
ubootKList=${UBOOT_KLIST:-"klist.txt"} |
405 |
fi |
fi |
406 |
|
|
407 |
mv ${tmpKList} ${ubootDir}/${ubootKList} |
mv ${tmpKList} ${ubootDir}/${ubootKList} |
408 |
|
[ -x /sbin/a-b-c ] && /sbin/a-b-c |
409 |
else |
else |
410 |
[[ -n ${verbose} ]] && echo "uImage ${newversion} does not exist!" |
[[ -n ${verbose} ]] && echo "uImage ${newversion} does not exist!" |
411 |
[ -f ${tmpKList} ] && rm -f ${tmpKList} |
[ -f ${tmpKList} ] && rm -f ${tmpKList} |
532 |
[[ -n ${verbose} ]] && echo "copy uInitrd-${version} error, kernel not installed!" && exit |
[[ -n ${verbose} ]] && echo "copy uInitrd-${version} error, kernel not installed!" && exit |
533 |
fi |
fi |
534 |
echo ${version} >> ${ubootDir}/${ubootKList} |
echo ${version} >> ${ubootDir}/${ubootKList} |
535 |
|
[ -x /sbin/a-b-c ] && /sbin/a-b-c |
536 |
else |
else |
537 |
[[ -n ${verbose} ]] && echo "cannot make ${version} the default" |
[[ -n ${verbose} ]] && echo "cannot make ${version} the default" |
538 |
fi |
fi |
589 |
if [ -d /lib/modules/${version} ] |
if [ -d /lib/modules/${version} ] |
590 |
then |
then |
591 |
rm -f /lib/modules/${version}/modules.*.bin \ |
rm -f /lib/modules/${version}/modules.*.bin \ |
592 |
/lib/modules/${version}/modules.{alias|dep|devname|symbols|softdep} |
/lib/modules/${version}/modules.{alias,dep,devname,symbols,softdep} |
593 |
fi |
fi |
594 |
} |
} |
595 |
|
|