View Poll Results: Should knoppix scan for home and config by default?
- Voters
- 10. You may not vote on this poll
-
Senior Member
registered user
One step further, and a timezone bug?
Well while the above works fine and dandy, if you have scan setup by default but actually you don't want to use any home or conf what do you do? Well why not also add the following patch so you can do home|myconf=no|none!
Change the home section to
___________________________
[Aa][Uu][Tt][Oo]|[Ss][Cc][Aa][Nn]|[Ff][Ii][Nn][Dd])
MYHOMEDIR="$(findfile knoppix.img)"
MYHOMEDEVICE="${MYHOMEDIR##/mnt/}"
MYHOMEDEVICE="/dev/${MYHOMEDEVICE%%/*}"
MYHOMEMOUNTPOINT="/mnt/${MYHOMEDEVICE##/dev/}"
;;
[Nn][Oo]|[Nn][Oo][Nn][Ee])
echo "${GREEN}Home switched off.${NORMAL}"
;;
*)
echo "${CRE}${RED}Invalid ${CYAN}home=${RED} option '$HOMEDIR' specified (must
start with /dev/ or /mnt/ or 'scan').${NORMAL}"
echo "${CRE}${RED}Option ignored.${NORMAL}"
;;
esac
fi
___________________________
and change the conf section to
___________________________
[Aa][Uu][Tt][Oo]|[Ss][Cc][Aa][Nn]|[Ff][Ii][Nn][Dd])
MYCONFDIR="$(findfile knoppix.sh)"
if [-n "$MYCONFDIR" ]; then
MYCONFDEVICE="${MYCONFDIR##/mnt/}"
MYCONFDEVICE="/dev/${MYCONFDEVICE%%/*}"
MYCONFMOUNTPOINT="/mnt/${MYCONFDEVICE##/dev/}"
MYCONFDIR="${MYCONFMOUNTPOINT}"
else
FOUND_CONFIG="none"
fi
;;
[Nn][Oo]|[Nn][Oo][Nn][Ee])
echo "${GREEN}Configdir turned off.${NORMAL}"
FOUND_CONFIG="off"
;;
*)
echo "${CRE}${RED}Invalid configdir '$MYCONFDIR' specified (must start with /de
v/ or /mnt/ or 'scan').${NORMAL}"
echo "${CRE}${RED}Option ignored.${NORMAL}"
FOUND_CONFIG="invalid"
;;
esac
___________________________
I've also come across what seems to be a problem concerning timezones. I was trying to figure out why my remaster had the time an hour early, even if I was in the right timezone! I think it's because the system clock is set ignorant of the timezone because hwclock is called in knoppix-autoconfig when TZ has not been exported. Now ordering gets tricky so I'm not 100% certain of how this should best be addressed. I think the answer is to export TZ after the tz cheatcode has been picked up (and localtime set) and then run hwclock there, that way it will see the correct TZ (or the best it's going to) when it sets the system clock. I assume there would also be no problem removing the first running of hwclock Sorry I'm posting these before I've tested them (when I can get back to it, tonight or perhaps earlier), but with 3.4 so imminent I wanted to mention them as soon as I came up with/across them.
Similar Threads
-
By Frunktz in forum General Support
Replies: 1
Last Post: 07-27-2005, 04:08 PM
-
By monkeyman2000 in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 09-19-2004, 06:34 PM
-
By bigal2000 in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 07-07-2004, 04:53 PM
-
By farawayuser in forum Customising & Remastering
Replies: 2
Last Post: 12-06-2003, 12:28 AM
-
By kim in forum General Support
Replies: 4
Last Post: 12-05-2003, 04:07 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

Commodore 128 C128 Computer FOR PARTS / REPAIR Untested Missing Key No Cords
$149.99

TeensyROM+ TR+ v0.4 Cartridge for C64/128 - w/ Case & 32GB SD Preloaded
$89.50

Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128
$79.99

Commodore OS USB | Bootable LIVE + Install | The Ultimate Gaming Linux OS | NEW
$11.99

Commodore 64 Serial Cable 6PIN DIN 1541 1571 C64 128 C128 Disk Drive Printer USA
$10.49

Commodore 64 PC with Model 1541 Diskette Drive and Flight Simulator II *READ*
$199.99

Commodore 1541 Emulator PI1541 HAT with ROTARY, OLED screen, USA Seller
$29.99

Commodore 64/C64 23 Original Games (Untested /As Is ,no returns )Maniac Mansion
$115.00

Commodore 64 Dead Test & Diagnostic Cartridge & Test Harness Set - USA seller
$39.99

Commodore 64c Computer System
$550.00