Editing
User:DarkShadow/Other Crap
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==DD-WRT== ===Radio Temps=== echo eth1=$((`wl -i eth1 phy_tempsense|awk {' print $1 '}`/2+20)) echo eth2=$((`wl -i eth2 phy_tempsense|awk {' print $1 '}`/2+20)) ===accessing different subnet=== ''Phuzi0n'': First off, this will only work if the router that was reset is connected via one of its LAN ports since the WAN port is firewalled by default. On the gateway router you just assign an IP to a br0 virtual interface and add NAT since the reset device won't have any route to the other network. In save startup ifconfig br0:1 192.168.1.2 netmask 255.255.255.0 In save firewall iptables -t nat -I POSTROUTING -o br0 -d 192.168.1.0/24 -j MASQUERADE ===Samba2=== http://www.dd-wrt.com/phpBB2/viewtopic.php?t=86926 - Samba2 dd-wrt ===Commands=== nvram size and amount free nvram show|grep free ext filesystem support ls -R /lib/modules/ | grep ext '''In the My Page thread redhat27 wrote:'''<br /> ...and with no nvram commits: I noticed that the script permissions were properly set by default in the tarball. So, a super easy way to 'install' the my page script files is just copy the tarball mypage-files-v0.16-20100129-00520.tgz over to your persistent storage (I used /jffs/store) and have this as part of your startup script: myPage="/jffs/store/mypage-files-v0.16-20100129-00520.tgz" if [ -e "$myPage" ]; then tar -C /tmp/www -xzf $myPage for pageIndex in 1 2 3 4 5 6 7 8 9 10 11 12 do pages="${pages} /tmp/www/mypage${pageIndex}.sh" done nvram set mypage_scripts="`echo $pages`" fi Of course you may wish to install less: just remove the relevant page indexes.<br /> '''corerev comand''' nvram show|grep corerev If you have a dual radio, you will see wl0 & wl1. If you have a single radio, wl0 will contain the corerev. '''wl commands'''<br /> Put simply, always specify the interface. wl -i `nvram get wl0_ifname` [rest of command] wl -i `nvram get wl0_ifname` cap = Wireless capabilities. example: Asus RT-N16 wl -i eth1 cap = Wireless Capabilities of radio at "eth1" Netgear WNDR3300 wl -i eth2 cap = Wireless Capabilities of radio at "eth2" wl -i eth3 cap = Wireless Capabilities of radio at "eth3" reference: [[dd-wrt-wiki:Wl_command Wl command] '''Getting the current up and down bandwidth''' If anyone is interested u can get the amount sent and received by using grep and ifconfig: RX=`ifconfig br0 | grep "RX bytes:" | cut -d ':' -f2 | cut -d "(" -f1 | tr -d ' '` TX=`ifconfig br0 | grep "RX bytes:" | cut -d ':' -f3 | cut -d "(" -f1 | tr -d ' '` If you can get the amount sent then u can get the current by just doing it again and subtracting them http://www.dd-wrt.com/phpBB2/viewtopic.php?t=90467 '''USB HDD spindown''' echo 1 > /sys/block/sda/device/scsi_disk:0:0:0:0/allow_restart ===D-Link Recovery ?=== *[https://forum.openwrt.org/viewtopic.php?pid=98659#p98659 Reference] The procedure is the following: use an ethernet cable to connect to a lan port on the switch; set the ethernet port ip to 192.168.0.2; disconnect the router's power cable; press the reset button and keep pressing it; connect the router's power cable; wait about 20 seconds with the reset button still pressed; the power light should be orange and blinking; release the reset button; use a browser and go to http://192.168.0.1; upload one of dlink's original images. Please note that even though the emergency webserver will be listening at 192.168.0.1, the router won't respond to pings.
Summary:
Please note that all contributions to TechInfoDepot may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TechInfoDepot:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
User page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Menu
Recent changes
Random page
Help
data/misc
Add data
Browse wiki
Semantic search
Search
Short-term conf. list
Contact admin
Tools
What links here
Related changes
User contributions
Logs
View user groups
Special pages
Page information
query forms
Embedded system
MGPC (non-PC)
Wireless adapter
OUI