Lines Matching +full:work +full:- +full:around
2 # ----------------------------------------------------------------------
3 # extract-ikconfig - Extract the .config file from a kernel image
5 # This will only work when the kernel was compiled with CONFIG_IKCONFIG.
7 # The obscure use of the "tr" filter is to work around older versions of
12 # ----------------------------------------------------------------------
19 if pos=`tr "$cf1\n$cf2" "\n$cf2=" < "$1" | grep -abo "^$cf2"`
22 tail -c+$(($pos+8)) "$1" | zcat > $tmp1 2> /dev/null
33 for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"`
36 tail -c+$pos "$img" | $3 > $tmp2 2> /dev/null
44 if [ $# -ne 1 -o ! -s "$img" ]
46 echo "Usage: $me <kernel-image>" >&2
53 trap "rm -f $tmp1 $tmp2" 0
58 # That didn't work, so retry after decompression.
63 try_decompress '\211\114\132' xy 'lzop -d'
64 try_decompress '\002\041\114\030' xyy 'lz4 -d -l'