You are not logged in.

#1 2011-05-04 07:19:40

Asaf K.
Member
Registered: 2011-05-04
Posts: 67

Init script update

Hi,

Yesterday as I updated my system the init scripts package was updated, and a new rc.conf file was installed into rc.conf.pacnew.

I was looking for an easy way to merge the new changes into the file, while not completely destroying the previous one.
Can that be done somewhat automatically, or do I have to go through each and every field - compare values and add, change and redefine?

Many thanks.

Offline

#2 2011-05-04 07:24:20

tasos
Member
From: Alpha Centauri
Registered: 2009-02-08
Posts: 25
Website

Re: Init script update

use diff to view differences and make your life easier.

diff -u /etc/rc.conf /etc/rc.conf.pacnew

then edit manualy


.: github :.

Offline

#3 2011-05-04 07:26:00

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: Init script update

This might help.

Offline

#4 2011-05-04 07:28:29

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: Init script update

You can use meld from extra, too. Very convenient.

Offline

#5 2011-05-04 07:41:36

Asaf K.
Member
Registered: 2011-05-04
Posts: 67

Re: Init script update

I actually tried with meld, it refused to open in superuser mode (both from a terminal by su/sudo as well by using gnomesu); the wiki link is most useful. Interestingly enough I tried to search for something like that back and forth, both on the forums as well google.

I am trying to use some of the suggested methods there. I'll post the progress as I go along.

Many thanks!

Edit: I ended up using emacs' ediff, I think it was a smashing success. Emacs, once again you save the day!

One last question, though, I didn't fully understand whether or not I should have hwclock on my daemons list or not.

Last edited by Asaf K. (2011-05-04 08:06:21)

Offline

#6 2011-05-04 09:55:39

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: Init script update

Are you in the group of wheel?

Re hwclock, If you use ntp or something like that you definitely should avoid hwclock in your daemon list.

Offline

#7 2011-05-04 19:43:07

Asaf K.
Member
Registered: 2011-05-04
Posts: 67

Re: Init script update

siriusb wrote:

Are you in the group of wheel?

Re hwclock, If you use ntp or something like that you definitely should avoid hwclock in your daemon list.

I do use ntp, in which case I will continue avoiding hwclock, thanks!

(The group of wheel? I have no idea what that even means. I usually go nano, but when things screw up - emacs is the almighty savior).

Offline

#8 2011-05-04 19:48:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Init script update

'wheel' is the name of a group (/etc/group), like 'power', 'optical' etc.
Some more info https://wiki.archlinux.org/index.php/Sudo#Using_visudo

Offline

#9 2011-05-04 21:51:02

sudokill
Member
Registered: 2011-04-27
Posts: 54

Re: Init script update

edit

Last edited by sudokill (2011-05-04 22:29:33)

Offline

Board footer

Powered by FluxBB