5 if [ ! -f "/boot/System.map-$UNAME" ]; then
6 echo "/boot/System.map-$UNAME doesn't exist" 1>&2
7 echo "mk-config failed" 1>&2
11 OFFSET
=`grep "\b$1\b" "/boot/System.map-$UNAME" | cut -d' ' -f1`
12 OFFSET
=`grep "\b$1\b" "/boot/System.map-$UNAME" | head -n 1 | cut -d' ' -f1`
14 if [ "$OFFSET" = '' ]; then
18 echo "#define $2 0x$OFFSET"