#!/bin/sh # # The OpenWRT patches are for the mac80211 package. They are functional # indentical to the kernel patches but need two modifications. # # 1. CONFIG_ needs to be replaced with CPTCFG_ # 2. any new configuration option, need to be patched into .local-symbols # # This script takes the pure kernel patches and make the above modifications. # DIR=$(dirname $0) rebuild() { sed -e"s|CONFIG_|CPTCFG_|g" $DIR/../../kernel-patches/$1 > $DIR/922-$1 cat >> $DIR/922-$1 <