|
|
@ -20,24 +20,28 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
hostap_postmake() { |
|
|
|
if [ $( echo $PWD | grep "[wpa_supplicant|hostapd|hostap-util]" ) ]; then |
|
|
|
hostap_postmake() |
|
|
|
{ |
|
|
|
if basename $PWD | egrep -q "(hostapd|hostap-util)"; then |
|
|
|
find $PWD -perm 755 -type f -exec cp -vp '{}' /usr/sbin/ \; |
|
|
|
fi |
|
|
|
if [ $( echo $PWD | grep hostap-driver ) ]; then |
|
|
|
if basename $PWD | grep -q hostap-driver; then |
|
|
|
make install |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
hostap_premake() { |
|
|
|
if [ $( echo $PWD | grep wpa_supplicant ) ]; then |
|
|
|
make mkconfig |
|
|
|
hostap_premake() |
|
|
|
{ |
|
|
|
if basename $PWD | grep -q hostapd; then |
|
|
|
cp defconfig .config |
|
|
|
fi |
|
|
|
if [ $( echo $PWD | grep hostap-driver ) ]; then |
|
|
|
patch -p1 <$confdir/hostap-driver_nodepmod.diff |
|
|
|
if basename $PWD | grep -q hostap-driver; then |
|
|
|
patch -p1 < $confdir/hostap-driver_nodepmod.diff |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
realmakeinstopt=$makeinstopt |
|
|
|
makeinstopt="" |
|
|
|
hook_add postmake 3 "hostap_postmake" |
|
|
|
hook_add premake 3 "hostap_premake" |
|
|
|
|