Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 3 of 3 < 1 2 3
Topic Options
#106465 - 08/08/2002 16:59 Re: /programs and preinit - the easy way. [Re: tman]
durden
journeyman

Registered: 18/07/2002
Posts: 75
Loc: Texas
Nothing against your script.. but..

How do I undo the changes that were made to my empeg by it? I'm somewhere past a linux newbie and way from being an expert, but I get lost in all the bash programming.. I'd like to keep the /programs0 etc, but remove most of the other changes that were made by it..

Thanks..
_________________________
- durden -

Top
#106466 - 08/08/2002 17:14 Re: /programs and preinit - the easy way. [Re: durden]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
I'm assuming you mean the script in the telnetd package???
That's the only one I can think of that I wrote...

All it does it create some extra device files in /dev/ which are used for the telnet daemon. They're harmless and won't affect anything else.

The files it creates are ttyp0 to ttypf and ptyp0 to ptyf. You can get rid of them if you don't want the telnet daemon.

If you're talking about the big script at the top of this thread to setup preinit then that's nothing to do with me Ask genixia

- Trevor

Top
#106467 - 08/08/2002 19:10 Re: /programs and preinit - the easy way. [Re: tman]
durden
journeyman

Registered: 18/07/2002
Posts: 75
Loc: Texas
haha.. my bad
_________________________
- durden -

Top
#106468 - 08/08/2002 19:14 Re: /programs and preinit - the easy way. [Re: genixia]
durden
journeyman

Registered: 18/07/2002
Posts: 75
Loc: Texas
So... yes, I was referring to genixia's script.. How do I undo the changes to my empeg that were added from your script? I mean, I know it created that /programs0 directory, and added some preinit files for empacman etc, but what other things did it do? (I tried looking through the script myself to figure out what to undo, but I just got really confused..

Thanks!
_________________________
- durden -

Top
#106469 - 09/08/2002 05:12 Re: /programs and preinit - the easy way. [Re: durden]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
1) Formatted paritions. I doubt you want to undo this.
2) Created mount points. Ditto.
3) Update /etc/fstab so that you can 'mount -n -r /programs0' etc. Again, it sounds like to need to keep this.
4) Created 2 utilities 'rop' and 'rwp' so that you can easily re-mount the new partitions read-only or read-write. These are in /bin. You can remove them if you want, but then you will need to manually remount partitions for writing, and back to read-only. cat /bin/rop and cat /bin/rwp to see how.
5) Created /etc/preinit.d and populated it with scripts. If you removed the entire directory, then the new partition wont be mounted at boot, so you may want to keep the N20mount script. But you can cd /etc/preinit.d and remove the others if you so desire.

That's all.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#106470 - 10/09/2002 14:07 Re: /programs and preinit - the easy way. [Re: genixia]
jets
enthusiast

Registered: 08/07/2002
Posts: 237
Loc: Toronto, Canada
Get your serial connection, and press "q" to get a shell. Type "rw" to make the root drive writeable. Leave the connection open..

can someone explain how to do this please?
_________________________
It seemed like a good idea at the time.

Top
#106471 - 10/09/2002 14:21 Re: /programs and preinit - the easy way. [Re: jets]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
Why don't you start here which is the FAQ entry for "How do I send and receive files from the player?"

Note that if you've got Hijack installed, a serial connection is not necessary, you can use FTP. You'll still need the serial connection to launch the applet, and links to that are included in the document I just linked.
_________________________
Tony Fabris

Top
#106472 - 06/10/2002 10:08 Re: /programs and preinit - the easy way. [Re: genixia]
image
old hand

Registered: 28/04/2002
Posts: 770
Loc: Los Angeles, CA
i was just thinking.....

how about just make /etc/preinit.d a symbolic link to a directory in /program0/. that will allow people to keep their custom preinit scripts from being deleted on a player reflash.

Top
#106473 - 06/10/2002 10:20 Re: /programs and preinit - the easy way. [Re: image]
image
old hand

Registered: 28/04/2002
Posts: 770
Loc: Los Angeles, CA
crap, i tried it, and just did a chicken or the egg deal.

how can i store preinit.d on a partition that needs to use preinit.d to mount itself.

duh.

Top
#106474 - 06/10/2002 10:33 Re: /programs and preinit - the easy way. [Re: image]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
That gives me an idea. I could have preinit attempt to mount /programs0 and if it's successful and /programs0/preinit.d exists, use that directory, otherwise fall back to /etc/preinit.d.

I'll see if I can't incorporate those bugfixes from another post and do this later on today.
_________________________
Bitt Faulk

Top
#106475 - 08/10/2002 06:49 Re: /programs and preinit - the easy way. [Re: wfaulk]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
That sounds like a plan to me

I wonder if it's worthwhile attempting to mount /programs1 at the same time so that we can remove the N10mount script totally? (..but only use /programs0 for your conditional...)
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
Page 3 of 3 < 1 2 3