Jump to content

/etc/rc.sysinit


Guest gerald
 Share

Recommended Posts

Hi people.

 

I was playing around with this file and now i cant do any upgrades or updates on my mandriva.

 

I just edited this line SYSTEM=${SYSTEM=test}

 

PRODUCT=`sed "s/.*release \([0-9.]*\).*/\1/g" /etc/mandrakelinux-release 2> /dev/null`

SYSTEM=${SYSTEM=test}

 

Please can someone give me the original line, what it should say.

 

 

Regards

Gerald

Link to comment
Share on other sites

Welcome to the board :beer:

 

The correct lines are:

 

PRODUCT=`sed "s/.*release \([0-9.]*\).*/\1/g" /etc/mandriva-release 2> /dev/null`
SYSTEM=${SYSTEM="Mandriva Linux"}

 

I'd guess, if you check you might find an rc.sysinit~ file in /etc/rc.d which would have your previous version before editing. Although if you edited the file two or three times, then it will only have the last copy before the last save.

Link to comment
Share on other sites

If you want to end up with a test-type environment, you can use urpmi to add easyurpmi sources for Cooker, which is the test branch of Mandriva. See the link to easyurpmi at the top of the page. If you have sources configured already, suggest you do this first:

 

urpmi.removemedia -a

 

to clear existing sources, and then add your new Cooker sources to apply updates to get to bleeding-edge and possibly unstable testing system.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...