I noticed that if compat-wireless-2.6's admin-update.sh is run twice in
a row without cleaning, it erroneously copies the
include/linux/unaligned/* files into an
include/linux/unaligned/unaligned/ directory.
Patch below making trivial changes to the script to avoid this.
If admin-update.sh was run twice without an admin-clean.sh, a spurious
additional /unaligned/ path component was created.
Signed-off-by: Max Bowsher <maxb@f2s.com>
DRIVER_FILES="$DRIVER_FILES at76c50x-usb.c at76c50x-usb.h"
mkdir -p include/linux/ include/net/ include/linux/usb \
+ include/linux/unaligned \
net/mac80211/ net/wireless/ \
drivers/ssb/ \
drivers/net/usb/ \
DIR="include/linux/unaligned"
echo "Copying $GIT_TREE/$DIR/*"
-cp -a $GIT_TREE/$DIR $DIR
+cp $GIT_TREE/$DIR/* $DIR
# Compat stuff