Mon, 28 Jun 2010

Cron on a Linksys WRT54G Router

Keywords: linksys wrt54g router alchemy

Every so often my Linksys WRT54G router will stop accepting connections. The simplest solution is just to reboot it. The trouble occurs when that happens and I am not near the router. So I wanted to set up a cron job to reboot it every night.

ssh into the router and run these commands:

nvram set rc_startup='#!/bin/sh
echo "0 5 * * * root /sbin/reboot" > /tmp/cron.d/reboot
touch /tmp/crontab
nvram commit
nvram get rc_startup

The first four lines set up a startup command which writes the cron line after each reboot, and touches the crontab to get cron to reload. The fifth line commits the command to the nvram and the final command simply prints it out to check.

[/unix] permanent link

Sun, 06 Jun 2010


Keywords: iPhone iTunes error 0xE8000041

If you get the error 0xE8000041 from iTunes when trying to sync apps on the iPhone, you need to run the following command on your iPhone:

# chown mobile:mobile /var/mobile/Applications/

Well, I did anyway. The previous owner was root.wheel. The permissions are 777.

[/unix/iPhone] permanent link

September 2017
Sun Mon Tue Wed Thu Fri Sat