PDA

View Full Version : How to automate this code:


FilimoniC
15-11-2005, 12:28
I'm not dtrong in linux. To run EggDrop, i do this:
>> Logging on wl500gx
#adduser
uegg
passsz
#su uegg
#cd /opt/eggdrop
#./eggdrop -n eggdrop.conf
<< Logging out (Eggdrop process stays alive)

I'd like eggdrop will run automatically when i boot up my router. Can you help me how to do it? Any advices?

Oleg
15-11-2005, 13:56
You've to save /etc/passwd and /etc/group in the flashfs once to avoid adding new user all the time.

FilimoniC
21-11-2005, 19:22
Strange... added to post-mount:
su uegg /opt/eggdrop/runeggdrop.sh &CODE]
runeggdrop.sh:
[CODE]cd /opt/eggdrop
./eggdrop -n eggdrop.conf > /dev/null
But it doesnt work!
If i login to router via SSH and run su uegg /opt/eggdrop/runeggdrop.sh & manually, it works... i don't understand. Plesase explain and help me!