-
Junior Member
registered user
system timezone setting: more 'knoppix-like' suggestions?
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?
Similar Threads
-
By tr in forum Customising & Remastering
Replies: 1
Last Post: 10-10-2005, 11:25 AM
-
By pavel7nl in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 06-11-2005, 09:57 PM
-
By el_supremo in forum General Support
Replies: 3
Last Post: 08-18-2004, 10:19 PM
-
By freeballer in forum The Lounge
Replies: 9
Last Post: 12-09-2003, 05:37 PM
-
By andrei in forum The Lounge
Replies: 9
Last Post: 11-09-2003, 03:16 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Apple Computer cards VTG 670-8020-B 607-0103-C 607-0291-C AST -Orange Micro ++
$169.00

Vintage Apple Monitor IIc 9" Green Monochrome 06/1985 A2M4090 October 1984 Stand
$275.00

Vintage Apple II Avant-Garde Creations Super Shape Draw And Animate 1981
$295.00

Vintage Apple iBook G3 12.1” 500MHz 2001 Restored, SSD Upgraded Mac OS 9.2/OS X
$180.00

Rare Vintage Macintosh Apple Wooden Disk Storage Box Dovetailed
$69.95

Vintage Apple Rainbow Metal Case Emblem Logo rectangle
$49.99

LARGE LOT Vintage Apple Macintosh Mouse Cables Accessories SCSI etc - UNTESTED
$80.00

Vintage Apple Pro Mouse M5769 Wired Optical USB White/Clear
$24.99

Vintage Apple Multiple Scan 15av Display Monitor M4681
$299.99

Apple cloth fabric banner iBook bondi blue orange NOS Vintage
$99.00