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=<config>', e.g. to lilo.conf or grub's menu.lst; and the init script will call switchconf with <config> 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