[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] kernel only extract script (fast + small)



slightly small, a lot faster (not use sed + set distro=1-18-CUR + 1 extraction)

BTW the default folder name looks like:
helmut-02082011_1-18-CUR

here's the bits I changed

---------------------------

(top)
DISTRO="1-18-CUR"
...

ARCHIVE="$1"
ARC_NAME=`echo "$ARCHIVE" | cut -d. -f1`
CPUTYPE=`grep -s CPU /kern/cpuinfo | cut -c 7-`
PLATFORM=`grep -s _MCH /kern/cookiejar | cut -c 20-`
CT6x=`grep -s CT60 /kern/cookiejar | cut -c 20-`
V4E=`grep -s _CF_ /kern/cookiejar | cut -c 20-`
HADES=`grep -s hade /kern/cookiejar | cut -c 20-`
...

if [ "$DISTRO" = "" ]; then
DISTROS="... (skips for loop + tar file list)
...

echo " ..finding and extracting: $KERNEL $XAAES"
tar --checkpoint --checkpoint-action=dot -jxf $SRC_ARC ./auto/$KERNEL
...

---------------------------

Cheers

Paul

Attachment: kernupgr.sh
Description: Bourne shell script