I've been having trouble setting the timezone on my hard-disk-installed knoppix system, because each time I reboot the file /etc/localtime gets overwritten with data for some other timezone (I think America/New York).

I came up with a solution, but am wondering if there is a simpler, more knoppix-like way to do this.

My solution was to add a new script to /etc/init.d:

Code:
#!/bin/bash
#The following lines update your /etc/localtime with data referred to in /etc/timezone
#The idea is to undo Knoppix's desire to overwrite timezone config each time we boot (done in knoppix-autoconfig)

OLIVER_TZ="`cat /etc/timezone 2>/dev/null`"
if [ -f "/usr/share/zoneinfo/$OLIVER_TZ" ]; then
rm /etc/localtime
cp "/usr/share/zoneinfo/$OLIVER_TZ" /etc/localtime
fi
I called it knoppix-hd-tzfix and linked it into the startup sequence as
Code:
ln -sf /etc/init.d/knoppix-hd-tzfix /etc/rcS.d/S02knoppix-hd-tzfix

FYI I'm using a system originally built from knoppix 3.4, installed using the knoppix-installer script (I think with the setting "knoppix" for the type of install). I've since upgraded many packages through apt-get.[/code]

Anybody else had this problem, and come up with a solution?