Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > DreamBox > Tools

Tools Discussion, Edit Flash Files DM7000 at DreamBox forum; Hi all, I am running Gemini 4.6 on my DM7000 and I cannot edit a file in flash location etc/init.d/init1 ...

Reply
 
LinkBack Thread Tools Display Modes
Edit Flash Files DM7000
Old
  (#1)
crows
Junior Member
 
crows's Avatar
 
Offline
Posts: 6

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 11
Magic: 2 / 329
Experience: 47%

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: May 2008
Edit Flash Files DM7000 - 09-March-2009, 08:20

Hi all,

I am running Gemini 4.6 on my DM7000 and I cannot edit a file in flash location etc/init.d/init1 this file is protected no matter what i do it wont let me edit it, move it or rename it.I need to edit this file so i can use my smargo.If i install image on USB then I can edit but this is no good to me as I need USB port for smargo.Is there any tool so I can edit this file? I have treid flashXP and DCC with both being the same.At the moment I'm running PLI but would really like to use my Gemini Image.

Thanks in advance.
Rick
   
Reply With Quote
Old
  (#2)
HaCKaMaC
ECS Expert
 
HaCKaMaC's Avatar
 
Offline
Posts: 207

Level: 13 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 310
Magic: 69 / 9680
Experience: 42%

Thanks: 4
Thanked 51 Times in 47 Posts
Join Date: Apr 2007
09-March-2009, 15:30

Telnet to the box (login as root) and change the file rights with:

chmod a+w /etc/init.d/init1

Afterwards it should be possible to edit the file.
   
Reply With Quote
Sponsored Links
Old
  (#3)
crows
Junior Member
 
crows's Avatar
 
Offline
Posts: 6

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 11
Magic: 2 / 329
Experience: 47%

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: May 2008
09-March-2009, 15:38

Thanks but still no good this is a copy from executing the command:

chmod: /etc/init.d/init1: Read-only file system
Maybe the files cannot be edited and I'm wasting my time?

Crows
Quote:
Originally Posted by HaCKaMaC View Post
Telnet to the box (login as root) and change the file rights with:

chmod a+w /etc/init.d/init1

Afterwards it should be possible to edit the file.
   
Reply With Quote
Old
  (#4)
HaCKaMaC
ECS Expert
 
HaCKaMaC's Avatar
 
Offline
Posts: 207

Level: 13 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 310
Magic: 69 / 9680
Experience: 42%

Thanks: 4
Thanked 51 Times in 47 Posts
Join Date: Apr 2007
09-March-2009, 15:50

What is the responce to:
chmod a+w /etc/init.d/init1
The above?

(09-March-2009 14:57)
You could try:

chmod a=rw

too.

Last edited by HaCKaMaC; 09-March-2009 at 15:57.. Reason: Automerged Doublepost
   
Reply With Quote
Old
  (#5)
crows
Junior Member
 
crows's Avatar
 
Offline
Posts: 6

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 11
Magic: 2 / 329
Experience: 47%

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: May 2008
10-March-2009, 10:30

No mater which command I use it responds the same:
chmod a=rw /etc/init.d/init1: Read-only file system

Is it possible this file is a protected file no matter what you do?

Thanks anyway
   
Reply With Quote
Old
  (#6)
HaCKaMaC
ECS Expert
 
HaCKaMaC's Avatar
 
Offline
Posts: 207

Level: 13 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 310
Magic: 69 / 9680
Experience: 42%

Thanks: 4
Thanked 51 Times in 47 Posts
Join Date: Apr 2007
10-March-2009, 12:43

It is very possible. If positioned within the squashfs. Then You'll need mksquashfs to append to the system. Haven't done that for ages, so You'll have to google a bit (or wait for another input here).
But when init1 is within the squashfs, there's probably another option to add startup commands.

(10-March-2009 11:57)
Ooops. Just noticed You were running Gemini. So there is another option.
Check out /var/etc/init.d/bootmisc.sh.

Last edited by HaCKaMaC; 10-March-2009 at 12:57.. Reason: Automerged Doublepost
   
Reply With Quote
Old
  (#7)
crows
Junior Member
 
crows's Avatar
 
Offline
Posts: 6

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 11
Magic: 2 / 329
Experience: 47%

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: May 2008
Smile 11-March-2009, 12:18

Thanks for your help but that file does not exist bootmisc.sh....I have a DM7000....more testing has revealed if I install image on USB that file can be edited, but problem is that I cannot use USB for smargo then.I guess my best option is to wait for new Gemini relase and hope its sorted out meanwhile I can continue to use PLI image which works staright off.....but I dont like image been a Gemini man all my life.
Quote:
Originally Posted by HaCKaMaC View Post
It is very possible. If positioned within the squashfs. Then You'll need mksquashfs to append to the system. Haven't done that for ages, so You'll have to google a bit (or wait for another input here).
But when init1 is within the squashfs, there's probably another option to add startup commands.

(10-March-2009 11:57)
Ooops. Just noticed You were running Gemini. So there is another option.
Check out /var/etc/init.d/bootmisc.sh.
   
Reply With Quote
Old
  (#8)
HaCKaMaC
ECS Expert
 
HaCKaMaC's Avatar
 
Offline
Posts: 207

Level: 13 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 310
Magic: 69 / 9680
Experience: 42%

Thanks: 4
Thanked 51 Times in 47 Posts
Join Date: Apr 2007
11-March-2009, 15:55

Oki... The bootmisc.sh is from a 7020. Expected it to be the same on the 7000. Try to look for other options in /var/etc/init.d. Believe the must be something there.
   
Reply With Quote
Old
  (#9)
crows
Junior Member
 
crows's Avatar
 
Offline
Posts: 6

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 11
Magic: 2 / 329
Experience: 47%

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: May 2008
12-March-2009, 13:12

There is a file in that directory called start the only entry in this file is this:

#!/bin/sh
. /etc/profile

Thats it.

Thanks
Rick

Quote:
Originally Posted by HaCKaMaC View Post
Oki... The bootmisc.sh is from a 7020. Expected it to be the same on the 7000. Try to look for other options in /var/etc/init.d. Believe the must be something there.
(12-March-2009 14:37)
Bugger I edited that file but still no go.....the smargo doesnt even flash the leds.Must be a way?

Thanks
Quote:
Originally Posted by crows View Post
There is a file in that directory called start the only entry in this file is this:

#!/bin/sh
. /etc/profile

Thats it.

Thanks
Rick

Last edited by crows; 12-March-2009 at 15:37.. Reason: Automerged Doublepost
   
Reply With Quote
Reply

Bookmarks

Tags
dm7000, edit, files, flash


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox