removed unused/broken functions
This commit is contained in:
parent
0e1812ef5b
commit
578810df2f
1 changed files with 3 additions and 47 deletions
50
buildscript
50
buildscript
|
@ -209,7 +209,7 @@ postbuild() {
|
||||||
}
|
}
|
||||||
|
|
||||||
flash() {
|
flash() {
|
||||||
# some flash tools need an arguement..
|
# some flash tools need an argument..
|
||||||
board_flash $1
|
board_flash $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,8 +219,7 @@ clean() {
|
||||||
}
|
}
|
||||||
|
|
||||||
buildall() {
|
buildall() {
|
||||||
for bsp in $(/bin/ls bsp/*.bsp)
|
for bsp in $(/bin/ls bsp/*.bsp); do
|
||||||
do
|
|
||||||
./buildscript selectcommunity $1
|
./buildscript selectcommunity $1
|
||||||
./buildscript selectbsp $bsp
|
./buildscript selectbsp $bsp
|
||||||
./buildscript prepare
|
./buildscript prepare
|
||||||
|
@ -228,18 +227,6 @@ buildall() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
routers() {
|
|
||||||
echo "router-types: "
|
|
||||||
echo " dir300"
|
|
||||||
echo " dir300b_adhoc"
|
|
||||||
echo " dir300b_ap"
|
|
||||||
echo " fonera"
|
|
||||||
echo " wrt54g_ap"
|
|
||||||
echo " wrt54g_adhoc"
|
|
||||||
echo " wr741nd"
|
|
||||||
echo " wr1043nd"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" -a "$1" != "buildall" ]; then
|
if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" -a "$1" != "buildall" ]; then
|
||||||
if [ ! -h selected_bsp ]; then
|
if [ ! -h selected_bsp ]; then
|
||||||
echo "Please select a Board-Support-Package using:"
|
echo "Please select a Board-Support-Package using:"
|
||||||
|
@ -324,35 +311,6 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"download")
|
|
||||||
if [ "$2" = "help" ] || [ "$2" = "" ]; then
|
|
||||||
echo "This option downloads the ready configured images from an external location if needet."
|
|
||||||
echo "Usage: $0 $1 http://downloadfolder router-type"
|
|
||||||
echo "Common downloadfolder for firmware version 0.3 is http://dev.freifunk-ol.de/firmware/0.3/"
|
|
||||||
routers
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
echo "This function is broken!"
|
|
||||||
else
|
|
||||||
exit
|
|
||||||
mkdir ./bin
|
|
||||||
cd ./bin
|
|
||||||
wget "$2/$3/openwrt-$3-root.squashfs"
|
|
||||||
wget "$2/$3/openwrt-$3-vmlinux.lzma"
|
|
||||||
cd ..
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
"flash")
|
|
||||||
if [ "$2" = "help" ] || [ "$2" = "x" ]; then
|
|
||||||
echo "This option flashes the router."
|
|
||||||
echo "$0 $1 net-dev"
|
|
||||||
routers
|
|
||||||
echo "net-dev:"
|
|
||||||
echo " ethX"
|
|
||||||
else
|
|
||||||
flash "$2"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
"clean")
|
"clean")
|
||||||
if [ "$2" = "help" ] || [ "$2" = "x" ]; then
|
if [ "$2" = "help" ] || [ "$2" = "x" ]; then
|
||||||
echo "This option cleans all build files."
|
echo "This option cleans all build files."
|
||||||
|
@ -372,7 +330,7 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "This is the Build Environment Script of the Freifunk Community Oldenburg."
|
echo "This is the Build Environment Script of the Freifunk Community Franken."
|
||||||
echo "Usage: $0 command"
|
echo "Usage: $0 command"
|
||||||
echo "command:"
|
echo "command:"
|
||||||
echo " selectcommunity [communityfile]"
|
echo " selectcommunity [communityfile]"
|
||||||
|
@ -381,8 +339,6 @@ case "$1" in
|
||||||
echo " config"
|
echo " config"
|
||||||
echo " build"
|
echo " build"
|
||||||
echo " buildall"
|
echo " buildall"
|
||||||
echo " flash"
|
|
||||||
echo " download"
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "If you need help to one of these options just type $0 command help"
|
echo "If you need help to one of these options just type $0 command help"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue