/usr/bin/linux-wlan-ng-build-firmware-deb is in linux-wlan-ng-firmware 0.2.9+dfsg-5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | #!/bin/bash
# copyright by Victor Seva <linuxmaniac@torreviejawireless.org>
# Enrico Tassi <gareuselesinge@users.sourceforge.net>
# License:
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License with
# the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
# if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
#
# See /usr/share/common-licenses/GPL for the full text of the GPL.
DEBIAN_SRC="/usr/src/linux-wlan-ng.tar.bz2"
DEBIAN="/usr/share/linux-wlan-ng-firmware/debian"
SVN="svn://svn.shaftnet.org/linux-wlan-ng/trunk"
PWD="`pwd`"
my_temp=$(mktemp -d prism2-XXXXXX) || exit 1
cd $my_temp
# decompress linux-wlan-ng-source
tar xjf "$DEBIAN_SRC"
# get *.hex and prism2dl.c files from upstream
# and copy them to the proper place
mkdir src
svn co -N $SVN/src/prism2/ src/prism2 || exit 1
cp src/prism2/*.hex modules/linux-wlan-ng/src/prism2
svn co -N $SVN/src/prism2/download src/prism2/download
cp src/prism2/download/prism2dl.c modules/linux-wlan-ng/src/prism2/download
# remove upstream directory
rm -rf src
# put directory tree on the root of the temp directory
mv modules/linux-wlan-ng/* .
# clean un necessary directories
rm -rf modules debian
# copy the proper debian directory for firmare package
cp -r "$DEBIAN" .
chmod a+rx debian/rules
dpkg-buildpackage -rfakeroot -us -uc
cd ..
rm -rf $my_temp
|