Bug#416095: switchconf: Allow for boot time configuration switch using kernel options.

2007-06-17 Thread Jose Calhariz
On Sat, Mar 24, 2007 at 08:34:21PM +0100, Eric Lavarde wrote:
> Package: switchconf
> Version: 0.0.5.1-1
> Severity: wishlist
> Tags: patch
> 
> 
> Hello again,
> 
> I've developed a small init script for switchconf which allows to
> switch the configuration at boot time. In order to do this you just
> need to add a kernel option 'switchconf=', e.g. to lilo.conf
> or grub's menu.lst; and the init script will call switchconf with
>  as parameter. 
> 
> (...)

I have accepted your patch.  I have released version 0.0.6 that you
can fetch from http://web.tagus.ist.utl.pt/~jose.calhariz/

I had all ready sent an email into debian-mentors requesting a sponsor
to upload the new package into Debian.


 Jose Calhariz


-- 
P.S. [En_US] The sig below is from my random sig-generator, which strangely
often seems to pick signatures which are apropriate to the message at
hand!

P.S. [Pt_Pt] A assinatura em baixo é do gerador aleatório de
assinaturas, que estranhamente, escolhe com frequência assinaturas que
parecem apropriadas ao email!
--

A vida é o que acontece enquanto você está ocupado com outros projetos

--John Lennon


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#416095: switchconf: Allow for boot time configuration switch using kernel options.

2007-03-24 Thread Eric Lavarde
Package: switchconf
Version: 0.0.5.1-1
Severity: wishlist
Tags: patch


Hello again,

I've developed a small init script for switchconf which allows to switch the
configuration at boot time. In order to do this you just need to add a kernel
option 'switchconf=', e.g. to lilo.conf or grub's menu.lst; and the init
script will call switchconf with  as parameter.

As an example, I have now the following in /boot/grub/menu.lst:

title   Debian GNU/Linux, kernel 2.6.18-4-686 (WORK)
root(hd0,4)
kernel  /boot/vmlinuz-2.6.18-4-686 root=/dev/hda5 ro switchconf=work
initrd  /boot/initrd.img-2.6.18-4-686
savedefault

title   Debian GNU/Linux, kernel 2.6.18-4-686 (HOME)
root(hd0,4)
kernel  /boot/vmlinuz-2.6.18-4-686 root=/dev/hda5 ro switchconf=home
initrd  /boot/initrd.img-2.6.18-4-686
savedefault

The switchconf file shall be installed as /etc/init.d/switchconf and linked to
/etc/rcS.d/S37switchconf. I chose 37 because it's just after 36 ;-) and 36 is
the level where the local file systems are mounted, i.e. there is no risk that
switchconf tries to install files to non-mounted file systems, and you can still
manipulate the network configuration.

Cheers, Eric

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)

-- no debconf information


switchconf
Description: application/shellscript


Bug#416095: switchconf: Allow for boot time configuration switch using kernel options.

2007-03-25 Thread Jose Calhariz
On Sat, Mar 24, 2007 at 08:34:21PM +0100, Eric Lavarde wrote:
> Package: switchconf
> Version: 0.0.5.1-1
> Severity: wishlist
> Tags: patch
> 
> 
> Hello again,
> 
> I've developed a small init script for switchconf which allows to
> switch the configuration at boot time. In order to do this you just
> need to add a kernel option 'switchconf=', e.g. to lilo.conf
> or grub's menu.lst; and the init script will call switchconf with
>  as parameter. 
> 
> As an example, I have now the following in /boot/grub/menu.lst:
> 
> title   Debian GNU/Linux, kernel 2.6.18-4-686 (WORK)
> root(hd0,4)
> kernel  /boot/vmlinuz-2.6.18-4-686 root=/dev/hda5 ro switchconf=work
> initrd  /boot/initrd.img-2.6.18-4-686
> savedefault
> 
> title   Debian GNU/Linux, kernel 2.6.18-4-686 (HOME)
> root(hd0,4)
> kernel  /boot/vmlinuz-2.6.18-4-686 root=/dev/hda5 ro switchconf=home
> initrd  /boot/initrd.img-2.6.18-4-686
> savedefault
> 
> The switchconf file shall be installed as /etc/init.d/switchconf and
> linked to /etc/rcS.d/S37switchconf. I chose 37 because it's just
> after 36 ;-) and 36 is the level where the local file systems are
> mounted, i.e. there is no risk that switchconf tries to install
> files to non-mounted file systems, and you can still manipulate the
> network configuration. 
> 
> Cheers, Eric
> 
> -- System Information:
> Debian Release: 4.0
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.18-4-686
> Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
> 
> -- no debconf information

Thank you for your patch.  On the next weeks I should release a new
version with your enhancement, but I will only try to send to Debian
after etch release.

 José Calhariz

-- 
P.S. [En_US] The sig below is from my random sig-generator, which strangely
often seems to pick signatures which are apropriate to the message at
hand!

P.S. [Pt_Pt] A assinatura em baixo é do gerador aleatório de
assinaturas, que estranhamente, escolhe com frequência assinaturas que
parecem apropriadas ao email!
--

Quando um executivo não se dá bem com as pessoas, então o problema dele é 
grande mesmo, porque numa empresa temos pessoas por toda parte. Não temos cães 
nem macacos - só pessoas

--Lee Iacocca


signature.asc
Description: Digital signature