OpenWrt

Jannich Brendle on October 19th, 2009

To automatically mount a harddrive partition on a OpenWrt enabled router with USB, insert this into /etc/init.d/usbmount on your router:
#!/bin/sh /etc/rc.common
START=80
STOP=40
start()
{
echo -n “Enabling swap: ”
swapon /dev/scsi/host0/bus0/target0/lun0/part1
echo -n “Testing USB Partition: ”
e2fsck -p /dev/scsi/host0/bus0/target0/lun0/part2 &
sleep 5
[...]

Continue reading about OpenWrt USB automount on boot

Jannich Brendle on September 26th, 2009

Alright, I was looking through the referrers to my blog, and saw this search term that came from google.com “openwrt twitter client”.
I have no idea why you would want a twitter client on your router, but still, I was inspired to write a simple script that would allow you to tweet from the commandline of [...]

Continue reading about Building an OpenWrt twitter client

Jannich Brendle on September 21st, 2009

If you are used to Linux systems, you know that logfiles are usually located in /var/log/ – but there is only three files in that directory on OpenWrt:
root@OpenWrt:~# ls /var/log/
lastlog messages wtmp
root@OpenWrt:~# cat /var/log/*
Sep 21 15:56:26 OpenWrt syslog.info syslogd started: BusyBox v1.11.2
root@OpenWrt:~#
So, to read the logfile from syslogd you should use the [...]

Continue reading about Reading logfiles on OpenWrt