The Battle of the Two rc.locals, a novel by K.C.Furge
Quote:
Originally Posted by
kfurge
Regarding your /opt problem...
The firmware looks for /shares/MYVOLUME1/opt and if it's there, then it mounts /shares/MYVOLUME1/opt over the top of the /opt that's already there and attempts to execute /opt/etc/rc.local. Which rc.local gets executed depends on whether or not /shares/MYVOLUME1/opt exists or not.
[cut]
Lather, rinse, repeat until everything works...
- K.C.
Hi, thanks, this just confirms my dark thoughts... So, as the Old formerware user, I see The Battle of Two rc.locals, fighting each other with fierce strength, until one passes away. Awry!
Here we have the K.C.Furge soldier that sets KCSHELL and names asoc in the LIB-path, en there we have my formerware fellow with his evel sword: mount -o bind /shares/${pool}/opt /opt. Wow! Klang! That wipes away our new brave fellow in /opt/etc. No! Too much dust and smoke is smashed into my eyes! It's not my brave rc.local thats doing the killing. It's the treacherous, evil rcex that stabs K.C.Furge's rc.local in the back, with it's mount bind.
As spectator of this fight I once logged in as marc and had no hostname, then with export I saw KCSHELL and asoc, which my rc.local does not have. Apparently your rc.local was executing. After sudo bash -l I did have a hostname 'sneeuwwitje', that is from my rc.local. That does its ugly mount -o bind /shares/${pool}/opt /opt.
With mount I saw this as the last lines:
/dev/se/2 on /opt type reiserfs (rw,noatime,nodiratime)
/dev/se/2 on /opt type reiserfs (rw,noatime,nodiratime)
Henrikh likes to delete his old opt. But that is no opt(ion) for me. I have mt-daapd and Twonky running, and so much time spent there. I want to tear these rc.locals apart. So I go for the renaming of my opt, if possible.
Thanks again for clarifying, maybe it eventually can lead to a better documentation for the formerware users.
Marc
How-to upgrade opt in the make
Hi,
I'm doing the update of this great firmware the difficult way. I want to update my opt directory, not to remove it.
So I'm busy doing that and meanwhile I prepare sort of a howto for others.
Of course, if one of you has it complete already, please overrule me.
Marc
O, BTW: I like to THANK mister Furge for his excellent job! :)
Will i lose files when reflashing.
will i lose all my files on the box when i reflash/upgrading firmware?
Easy control for mldonkey
Two question:
1) Since mldonkey use a LOT of cpu resources would be very interesting having the possibility to start and stop it in a easy way. Stopping of course is only a matter of killing the core using Sancho, but restarting requires a telnet session and typing some annoying commands (not very comfortable).
2) I have the ftp server accessible from wan and would be very interesting to me knowing who is connected at that time, possibly in real time. Is there the possibility? Could I manage the user's connections?
Thanks in advance to anyone will help me.
(sorry for my ignorance and rusty english, but EXPERTS exists to be hopefully helpful)