Permalink
Browse files

Do not hardcode router model in lib/init

  • Loading branch information...
1 parent 9a24413 commit c1ed878fb4db33fcaa63c7024d39aaa4f8f0d1f0 probono committed with makefu Dec 30, 2013
Showing with 9 additions and 12 deletions.
  1. +3 −1 README.md
  2. +6 −11 lib/init
View
@@ -6,6 +6,8 @@ Based on http://shackspace.de/wiki/doku.php?id=project:minikrebs
Build image that contains a webradio client
-------------------------------------------
+ # If you want to build for a device other than the TP-LINK TL-WR703N, do:
+ export PLATFORM=DIR505A1 # for D-Link DIR-505
# Get ready
./prepare radio
# Build the firmware image
@@ -18,7 +20,7 @@ The device will get an IP address via DHCP on wired Ethernet, and default passwo
### Setting up WLAN client mode
-* Wifi: Scan, Join Network, Create / Assign firewall-zone: select lan (green)!, Submit, Save and apply
+* Wifi: Scan, Join Network, Create / Assign firewall-zone: select lan (green)! (this is no longer needed since the firewall packet is no longer installed), Submit, Save and apply
* Interfaces -> WWAN -> Advanced settings -> Override MAC address: Has the WRONG IP, so set IP+1, Save and apply
* Interfaces: Both LAN and WWAN should be green now and both should have an IP address
* HTML interface should be reachable on both addresses
View
@@ -21,21 +21,16 @@ fi
echo
-if [ -e bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin ];
-then
- cat << EOF
-finished building
-You can use the following images:
- Factory : $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
- System Upgrade: $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin
-EOF
-elif [ -e bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin ];
+FACTORY=$(find bin/ | grep -e "squashfs-factory.bin$" | head -n 1)
+SYSUPGRADE=$(find bin/ | grep -e "squashfs-sysupgrade.bin$" | head -n 1)
+
+if [ "$FACTORY" != "" ];
then
cat << EOF
finished building
You can use the following images:
- Factory : $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
- System Upgrade: $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin
+ Factory : $PWD/$FACTORY
+ System Upgrade: $PWD/$SYSUPGRADE
EOF
else
cat << EOF

0 comments on commit c1ed878

Please sign in to comment.