From 578810df2f96b055c630b9da54d579fe59ccb120 Mon Sep 17 00:00:00 2001 From: Oliver Voelker Date: Tue, 11 Nov 2014 21:29:41 +0100 Subject: [PATCH] removed unused/broken functions --- buildscript | 50 +++----------------------------------------------- 1 file changed, 3 insertions(+), 47 deletions(-) diff --git a/buildscript b/buildscript index 0582007a..2fa8d4df 100755 --- a/buildscript +++ b/buildscript @@ -209,7 +209,7 @@ postbuild() { } flash() { - # some flash tools need an arguement.. + # some flash tools need an argument.. board_flash $1 } @@ -219,8 +219,7 @@ clean() { } buildall() { - for bsp in $(/bin/ls bsp/*.bsp) - do + for bsp in $(/bin/ls bsp/*.bsp); do ./buildscript selectcommunity $1 ./buildscript selectbsp $bsp ./buildscript prepare @@ -228,18 +227,6 @@ buildall() { 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 [ ! -h selected_bsp ]; then echo "Please select a Board-Support-Package using:" @@ -324,35 +311,6 @@ case "$1" in ;; 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") if [ "$2" = "help" ] || [ "$2" = "x" ]; then echo "This option cleans all build files." @@ -372,7 +330,7 @@ case "$1" in 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 "command:" echo " selectcommunity [communityfile]" @@ -381,8 +339,6 @@ case "$1" in echo " config" echo " build" echo " buildall" - echo " flash" - echo " download" echo "" echo "If you need help to one of these options just type $0 command help" ;;