6 if [ "`id -u`" != "0" ]; then
7 echo "Sorry, this must be done as root."
11 echo "You must specify which kernel to extract."
19 if [ -d $KERNEL ]; then
20 echo "You are about to extract the $CONFIG kernel distribution into $KERNEL - are you SURE"
21 echo -n "you want to do this over your installed system (y/n)? "
24 # new installation; do not prompt
27 if [ "$ans" = "y" ]; then
28 if [ -d $KERNEL ]; then
31 # XXX remove stuff w/o a prompt
32 echo "Removing existing $sav"
35 echo "Saving existing $KERNEL as $sav"
38 # translate per Makefile:doTARBALL XXX are we sure to have tr+cut?
39 tn=`echo ${CONFIG} | tr 'A-Z' 'a-z' | cut -c1-8`
40 cat $tn.?? | tar --unlink -xpzf - -C $BOOT
42 echo "Installation of $CONFIG kernel distribution not done."