Add 64bit binary for ap51-flash tool to flash foneras on 64bit systems

This commit is contained in:
floh1111 2012-06-08 11:07:30 +00:00
parent 924f618828
commit b412b70500
3 changed files with 9 additions and 5 deletions

View File

@ -160,7 +160,7 @@ build() {
flash() { flash() {
#Get flash tools #Get flash tools
svn export http://svn.freifunk-ol.de/build_environment/flash_tools svn export http://svn.freifunk-ol.de/firmware/Trunk/flash_tools
if [ ! "`whoami`" = "root" ] if [ ! "`whoami`" = "root" ]
then then
@ -171,16 +171,18 @@ flash() {
echo "Do not plugin your router now, you will be asked to do this later!" echo "Do not plugin your router now, you will be asked to do this later!"
echo "Stopping Network manager and starting normal network and tftp server..." echo "Stopping Network manager and starting normal network and tftp server..."
if [ -f /etc/rc.d/networkmanager ];then if [ -f /etc/rc.d/networkmanager ];then
/etc/rc.d/networkmanager stop&&/etc/rc.d/network start /etc/rc.d/networkmanager stop
/etc/rc.d/tftpd start /etc/rc.d/tftpd start
elif [ -f /etc/init.d/networkmanager ];then elif [ -f /etc/init.d/networkmanager ];then
/etc/init.d/networkmanager stop&&/etc/init.d/network start /etc/init.d/networkmanager stop
/etc/init.d/tftpd start /etc/init.d/tftpd start
elif [ -f /usr/sbin/invoke-rc.d ];then elif [ -f /usr/sbin/invoke-rc.d ];then
invoke-rc.d tftpd-hpa start invoke-rc.d tftpd-hpa start
invoke-rc.d network-manager stop invoke-rc.d network-manager stop
fi fi
ifconfig $2 up
echo "Clearing Firewall!" echo "Clearing Firewall!"
iptables -F iptables -F
iptables -P INPUT ACCEPT iptables -P INPUT ACCEPT
@ -198,8 +200,9 @@ flash() {
"fonera") "fonera")
echo "In some cases you have to set a symlink to libpcap to make flashing work (Tim told me that it is evil if I do that for you):" echo "In some cases you have to set a symlink to libpcap to make flashing work (Tim told me that it is evil if I do that for you):"
echo "ln -s /usr/lib/libpcap.so.1.1.1 /usr/lib/libpcap.so.0.8" echo "ln -s /usr/lib/libpcap.so.1.1.1 /usr/lib/libpcap.so.0.8"
./flash_tools/fonera-flash/ap51-flash-1.0-42 $2 ./bin/openwrt-$1-root.squashfs ./bin/openwrt-$1-vmlinux.lzma freifunc arch=`uname -m`
./flash_tools/fonera-flash/ap51-flash-$arch $2 ./bin/openwrt-$1-root.squashfs ./bin/openwrt-$1-vmlinux.lzma freifunc
;; ;;
"dir300b_adhoc" | "dir300b_ap") "dir300b_adhoc" | "dir300b_ap")
echo "* Press RESET on your router and power it on." echo "* Press RESET on your router and power it on."
@ -214,6 +217,7 @@ flash() {
esac esac
echo "Starting Networkmanager again" echo "Starting Networkmanager again"
sleep 5;
if [ -f /etc/rc.d/networkmanager ];then if [ -f /etc/rc.d/networkmanager ];then
/etc/rc.d/networkmanager start /etc/rc.d/networkmanager start
elif [ -f /etc/init.d/networkmanager ];then elif [ -f /etc/init.d/networkmanager ];then

Binary file not shown.