#!/bin/shK="$1"WG="$(readlink -f "$(dirname "$(readlink -f "$0")")/../../src/")"if[[ ! -e $K/net/Kconfig ]];thenecho"You must specify the location of kernel sources as the first argument." >&2exit1fi
sed -i "/^if INET\$/a source \"$WG/Kconfig\"""$K/net/Kconfig"echo"obj-y += ../../../../../../../../../../../../../../../../../../../../../..$WG/" >> "$K/net/Makefile"