Here is the output of valgrind:
[EMAIL PROTECTED]:/tmp$ sudo valgrind --leak-check=full /sbin/insserv
==11673== Memcheck, a memory error detector.
==11673== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==11673== Using LibVEX rev 1854, a library for dynamic binary translation.
==11673== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==11673== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
framework.
==11673== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==11673== For more details, rerun with: -v
==11673==
==11673== Invalid read of size 1
==11673== at 0x402377E: strcmp (mc_replace_strmem.c:337)
==11673== by 0x80512AA: makeprov (listing.c:187)
==11673== by 0x804D5F9: main (insserv.c:1730)
==11673== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11673==
==11673== Process terminating with default action of signal 11 (SIGSEGV)
==11673== Access not within mapped region at address 0x0
==11673== at 0x402377E: strcmp (mc_replace_strmem.c:337)
==11673== by 0x80512AA: makeprov (listing.c:187)
==11673== by 0x804D5F9: main (insserv.c:1730)
==11673==
==11673== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 13 from 1)
==11673== malloc/free: in use at exit: 311,313 bytes in 4,835 blocks.
==11673== malloc/free: 68,260 allocs, 63,425 frees, 4,695,467 bytes
allocated.
==11673== For counts of detected errors, rerun with: -v
==11673== searching for pointers to 4,835 not-freed blocks.
==11673== checked 346,788 bytes.
==11673==
==11673== LEAK SUMMARY:
==11673== definitely lost: 0 bytes in 0 blocks.
==11673== possibly lost: 0 bytes in 0 blocks.
==11673== still reachable: 311,313 bytes in 4,835 blocks.
==11673== suppressed: 0 bytes in 0 blocks.
==11673== Reachable blocks (those to which a pointer was found) are not
shown.
==11673== To see them, rerun with: --leak-check=full --show-reachable=yes
Segmentation fault
Here is the output of your script:
[EMAIL PROTECTED]:/tmp$ sh script.sh
cat <<'EOF' > $tmpdir$insconf
$local_fs +mountall +mountoverflowtmp +umountfs
$network +networking +ifupdown
$named +named +dnsmasq +lwresd +bind9 $network
$remote_fs $local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs
$syslog +syslog +sysklogd +rsyslog +syslog-ng
$portmap portmap
$time hwclock
<interactive> glibc hostname mountkernfs udev mountdevsubfs checkroot
checkfs console-screen keymap
EOF
addscript acct <<EOF
### BEGIN INIT INFO
# Provides: acct
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: process and login accounting
# Description: GNU Accounting Utilities is a set of utilities which
# reports and summarizes data about user connect
times and
# process execution statistics.
### END INIT INFO
EOF
addscript acpid <<EOF
### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# X-Start-Before: kdm gdm xdm hal
# X-Stop-After: kdm gdm xdm hal
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the Advanced Configuration and Power
Interface daemon
# Description: Provide a socket for X11, hald and others to multiplex
# kernel ACPI events.
### END INIT INFO
EOF
addscript alsa-utils <<EOF
### BEGIN INIT INFO
# Provides: alsa-utils
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Restore and store ALSA driver settings
# Description: This script stores and restores mixer levels on
# shutdown and bootup.On sysv-rc systems: to
# disable storing of mixer levels on shutdown,
# remove /etc/rc[06].d/K50alsa-utils. To disable
# restoring of mixer levels on bootup, rename the
# "S50alsa-utils" symbolic link in /etc/rcS.d/ to
# "K50alsa-utils".
### END INIT INFO
EOF
addscript anacron <<EOF
### BEGIN INIT INFO
# Provides: anacron
# Required-Start: $remote_fs $syslog $time
# Required-Stop: $remote_fs $syslog $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Handle anac(h)ronistic cron
### END INIT INFO
EOF
addscript apache2 <<EOF
### BEGIN INIT INFO
# Provides: apache2
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop apache2 web server
### END INIT INFO
EOF
addscript atd <<EOF
### BEGIN INIT INFO
# Provides: atd
# Required-Start: $syslog $time $remote_fs
# Required-Stop: $syslog $time $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Deferred execution scheduler
# Description: Debian init script for the atd deferred executions
# scheduler
### END INIT INFO
EOF
addscript avahi-daemon <<EOF
### BEGIN INIT INFO
# Provides: avahi
# Required-Start: $remote_fs dbus
# Required-Stop: $remote_fs dbus
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Avahi mDNS/DNS-SD Daemon
# Description: Zeroconf daemon for configuring your network
# automatically
### END INIT INFO
EOF
addscript bittorrent <<EOF
### BEGIN INIT INFO
# Provides: bittorrent
# Required-Start: $network $local_fs
# Required-Stop: $network $local_fs
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start a bittorrent tracker
# Description: Starts a bittorrent tracker, which
# aids bittorrent clients by locating
# other clients.
### END INIT INFO
EOF
addscript bootchart <<EOF
### BEGIN INIT INFO
# Provides: bootchart
# Required-Start: $remote_fs rmnologin
# Required-Stop:
# Default-Start: 1 2 3 4 5
# Default-Stop:
# Short-Description: Stop bootchartd
# Description: This script stops the bootchartd daemon after
# the system came up.
### END INIT INFO
EOF
addscript bootlogd <<EOF
### BEGIN INIT INFO
# Provides: bootlogd
# Required-Start: mountdevsubfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Start or stop bootlogd.
# Description: Starts or stops the bootlogd log program
# which logs boot messages.
### END INIT INFO
EOF
addscript bootmisc.sh <<EOF
### BEGIN INIT INFO
# Provides: bootmisc
# Required-Start: hostname $remote_fs
# Required-Stop:
# Should-Start: udev
# Default-Start: S
# Default-Stop:
# Short-Description: Miscellaneous things to be done during bootup.
# Description: Some cleanup. Note, it need to run after
mountnfs-bootclean.sh.
### END INIT INFO
EOF
addscript checkfs.sh <<EOF
### BEGIN INIT INFO
# Provides: checkfs
# Required-Start: checkroot
# Required-Stop:
# Should-Start: mtab cryptdisks
# Default-Start: S
# Default-Stop:
# Short-Description: Check all filesystems.
### END INIT INFO
EOF
addscript checkroot.sh <<EOF
### BEGIN INIT INFO
# Provides: checkroot
# Required-Start: mountdevsubfs hostname
# Required-Stop:
# Should-Start: keymap hwclockfirst hdparm bootlogd
# Should-stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Check to root file system.
### END INIT INFO
EOF
addscript console-screen.sh <<EOF
### BEGIN INIT INFO
# Provides: console-screen
# Required-Start: $local_fs $remote_fs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Description: Set console screen modes and fonts
# Short-Description: Prepare console
### END INIT INFO
EOF
addscript courier-authdaemon <<EOF
### BEGIN INIT INFO
# Provides: courier-authdaemon
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
EOF
addscript courier-imap <<EOF
### BEGIN INIT INFO
# Short-Description: Courier IMAP server
# Provides: courier-imap
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
EOF
addscript cron <<EOF
### BEGIN INIT INFO
# Provides: cron
# Required-Start: $remote_fs $syslog $time
# Required-Stop: $remote_fs $syslog $time
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: Regular background program processing daemon
# Description: cron is a standard UNIX program that runs
user-specified
# programs at periodic scheduled times. vixie cron adds a
# number of features to the basic UNIX cron,
including better
# security and more powerful configuration options.
### END INIT INFO
EOF
addscript cups <<EOF
### BEGIN INIT INFO
# Provides: cups
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $network avahi
# Should-Stop: $network
# X-Start-Before: samba
# X-Stop-After: samba
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: CUPS Printing spooler and server
### END INIT INFO
EOF
addscript dbus <<EOF
### BEGIN INIT INFO
# Provides: dbus
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: D-Bus systemwide message bus
# Description: D-Bus is a simple interprocess messaging system, used
# for sending messages between applications.
### END INIT INFO
EOF
addscript ddclient <<EOF
### BEGIN INIT INFO
# Provides: ddclient
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Update dynamic domain name service entries
### END INIT INFO
EOF
addscript dhcp3-server <<EOF
### BEGIN INIT INFO
# Provides: dhcp3-server
# Required-Start: $remote_fs $network $syslog
# Required-Stop: $remote_fs $network $syslog
# Should-Start: $local_fs slapd
# Should-Stop: $local_fs slapd
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: DHCP server
# Description: Dynamic Host Configuration Protocol Server
### END INIT INFO
EOF
addscript exim4 <<EOF
### BEGIN INIT INFO
# Provides: exim4
# Required-Start: $remote_fs $syslog $named $network $time
# Required-Stop: $remote_fs $syslog $named $network
# Should-Start: postgresql mysql clamav-daemon greylist spamassassin
# Should-Stop: postgresql mysql clamav-daemon greylist spamassassin
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: exim Mail Transport Agent
# Description: exim is a Mail Transport agent
### END INIT INFO
EOF
addscript fancontrol <<EOF
### BEGIN INIT INFO
# Provides: fancontrol
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: fancontrol
# Description: fan speed regulator
### END INIT INFO
EOF
addscript fuse <<EOF
### BEGIN INIT INFO
# Provides: fuse
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Filesystem in userspace
# Description: This file load all what's needed to make fuse work fine
### END INIT INFO
EOF
addscript glibc.sh <<EOF
### BEGIN INIT INFO
# Provides: glibc
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
### END INIT INFO
EOF
addscript gpm <<EOF
### BEGIN INIT INFO
# Provides: gpm
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: gpm sysv init script
# Description: general purpose mouse event server
### END INIT INFO
EOF
addscript guidance-backends <<EOF
### BEGIN INIT INFO
# Provides: kde-guidance
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: displayconfig hardware probe
# Description: displayconfig hardware probe. This program should
be run
# during boot time. It quickly examines the graphics
cards
# (read: PCI devices) in the computer and compares
they to
# the list in the file guidance-gfxhardware-snapshot.
If the
# two lists differ then the Debian package manager is
# automatically called to regenerate /etc/X11/xorg.conf.
# This hopefully should mean that people can swap gfx
cards
# in and out and always have a system that will run Xorg.
# (even though the config will be most likely be
suboptimal.
# Suboptimal is better than no X server).
### END INIT INFO
EOF
addscript hal <<EOF
### BEGIN INIT INFO
# Provides: hal
# Required-Start: $remote_fs dbus
# Required-Stop: $remote_fs dbus
# Should-Start: $syslog acpid
# Should-Stop: $syslog acpid
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Hardware abstraction layer
# Description: The HAL daemon collects and maintains information about
# your hardware.
### END INIT INFO
EOF
addscript halt <<EOF
### BEGIN INIT INFO
# Provides: halt
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop: 0
# Short-Description: Execute the halt command.
# Description:
### END INIT INFO
EOF
addscript hddtemp <<EOF
### BEGIN INIT INFO
# Provides: hddtemp
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: disk temperature monitoring daemon
# Description: hddtemp is a disk temperature monitoring daemon
### END INIT INFO
EOF
addscript hostname.sh <<EOF
### BEGIN INIT INFO
# Provides: hostname
# Required-Start:
# Required-Stop:
# Should-Start: glibc
# Default-Start: S
# Default-Stop:
# Short-Description: Set hostname based on /etc/hostname
# Description: Read the machines hostname from /etc/hostname, and
# update the kernel value with this value. If
# /etc/hostname is empty, the current kernel value
# for hostname is used. If the kernel value is
# empty, the value 'localhost' is used.
### END INIT INFO
EOF
addscript hotkey-setup <<EOF
### BEGIN INIT INFO
# Provides: hotkey-setup
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: Set up laptop keys to generate keycodes.
### END INIT INFO
EOF
addscript hwclockfirst.sh <<EOF
### BEGIN INIT INFO
# Provides: hwclockfirst
# Required-Start: mountdevsubfs
# Required-Stop: umountroot
# Default-Start: S
# Default-Stop: 0 6
### END INIT INFO
EOF
addscript hwclock.sh <<EOF
### BEGIN INIT INFO
# Provides: hwclock
# Required-Start: mountdevsubfs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
### END INIT INFO
EOF
addscript ifupdown <<EOF
### BEGIN INIT INFO
# Provides: ifupdown
# Required-Start: ifupdown-clean
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Prepare the system for taking up interfaces.
### END INIT INFO
EOF
addscript ifupdown-clean <<EOF
### BEGIN INIT INFO
# Provides: ifupdown-clean
# Required-Start: checkroot
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Clean old iterface status info during boot.
### END INIT INFO
EOF
addscript inetd.dpkg-new <<EOF
EOF
addscript irqbalance <<EOF
### BEGIN INIT INFO
# Provides: irqbalance
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: daemon to balance interrupts for SMP systems
### END INIT INFO
EOF
addscript kdm <<EOF
### BEGIN INIT INFO
# Provides: x-display-manager kdm
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: console-screen
# Should-Stop: console-screen
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: X display manager for KDE
# Description: KDM manages a collection of X servers, which may be
on the local host or remote machines.
### END INIT INFO
EOF
addscript keymap.sh <<EOF
### BEGIN INIT INFO
# Provides: keymap
# Required-Start: mountdevsubfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Set keymap
# Description: Set the Console keymap
### END INIT INFO
EOF
addscript killprocs <<EOF
### BEGIN INIT INFO
# Provides: killprocs
# Required-Start: $local_fs
# Required-Stop:
# Default-Start: 1
# Default-Stop:
# Short-Description: executed by init(8) upon entering runlevel 1 (single).
### END INIT INFO
EOF
addscript klogd <<EOF
### BEGIN INIT INFO
# Provides: klogd
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Kernel logger
### END INIT INFO
EOF
addscript lm-sensors <<EOF
### BEGIN INIT INFO
# Provides: lm-sensors
# Required-Start: $local_fs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: lm-sensors
# Description: hardware health monitoring
### END INIT INFO
EOF
addscript module-init-tools <<EOF
### BEGIN INIT INFO
# Provides: module-init-tools
# Required-Start:
# Required-Stop:
# Should-Start: checkroot
# Should-stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Process /etc/modules.
# Description: Load the modules listed in /etc/modules.
### END INIT INFO
EOF
addscript mountall-bootclean.sh <<EOF
### BEGIN INIT INFO
# Provides: mountall-bootclean
# Required-Start: mountall
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: bootclean after mountall.
# Description: Clean temporary filesystems after
# all local filesystems have been mounted.
### END INIT INFO
EOF
addscript mountall.sh <<EOF
### BEGIN INIT INFO
# Provides: mountall
# Required-Start: checkfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Mount all filesystems.
# Description:
### END INIT INFO
EOF
addscript mountdevsubfs.sh <<EOF
### BEGIN INIT INFO
# Provides: mountdevsubfs
# Required-Start: mountkernfs
# Required-Stop:
# Should-Start: udev
# Default-Start: S
# Default-Stop:
# Short-Description: Mount special file systems under /dev.
# Description: Mount the virtual filesystems the kernel provides
# that ordinarily live under the /dev filesystem.
### END INIT INFO
EOF
addscript mountkernfs.sh <<EOF
### BEGIN INIT INFO
# Provides: mountkernfs
# Required-Start:
# Required-Stop:
# Should-Start: glibc
# Default-Start: S
# Default-Stop:
# Short-Description: Mount kernel virtual file systems.
# Description: Mount initial set of virtual filesystems the kernel
# provides and that are required by everything.
### END INIT INFO
EOF
addscript mountnfs-bootclean.sh <<EOF
### BEGIN INIT INFO
# Provides: mountnfs-bootclean
# Required-Start: mountnfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: bootclean after mountnfs.
# Description: Clean temporary filesystems after
# network filesystems have been mounted.
### END INIT INFO
EOF
addscript mountnfs.sh <<EOF
### BEGIN INIT INFO
# Provides: mountnfs
# Required-Start: $local_fs
# Required-Stop:
# Should-Start: $network $portmap nfs-common udev-mtab
# Default-Start: S
# Default-Stop:
# Short-Description: Wait for network file systems to be mounted
# Description: Network file systems are mounted by
# /etc/network/if-up.d/mountnfs in the background
# when interfaces are brought up; this script waits
# for them to be mounted before carrying on.
### END INIT INFO
EOF
addscript mountoverflowtmp <<EOF
### BEGIN INIT INFO
# Provides: mountoverflowtmp
# Required-Start: mountall-bootclean
# Required-Stop: umountfs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: mount emergency /tmp.
# Description: Mount a tmpfs on /tmp if there would
# otherwise be too little space to log in.
### END INIT INFO
EOF
addscript mtab.sh <<EOF
### BEGIN INIT INFO
# Provides: mtab
# Required-Start: checkroot
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Update mtab file.
# Description: Update the mount program's mtab file after
# all local filesystems have been mounted.
### END INIT INFO
EOF
addscript networking <<EOF
### BEGIN INIT INFO
# Provides: networking
# Required-Start: mountkernfs ifupdown $local_fs
# Required-Stop: ifupdown $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Raise network interfaces.
### END INIT INFO
EOF
addscript nfs-common <<EOF
### BEGIN INIT INFO
# Provides: nfs-common
# Required-Start: $time
# Required-Stop: $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: NFS support files common to client and server
# Description: NFS is a popular protocol for file sharing across
# TCP/IP networks. This service provides various
# support functions for NFS mounts.
### END INIT INFO
EOF
addscript nviboot <<EOF
### BEGIN INIT INFO
# Provides: nviboot
# Required-Start: $remote_fs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Script to recover nvi edit sessions.
### END INIT INFO
EOF
addscript openbsd-inetd <<EOF
### BEGIN INIT INFO
# Provides: inetd
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the inetd daemon.
### END INIT INFO
EOF
addscript openvpn <<EOF
### BEGIN INIT INFO
# Provides: vpn
# Required-Start: $network $local_fs
# Required-Stop: $network $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Openvpn VPN service
### END INIT INFO
EOF
addscript policycoreutils <<EOF
### BEGIN INIT INFO
# Provides: restorecond
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start: S 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Start the Daemon used to maintain path file context
# Description: uses inotify to look for creation of new files
# listed in the /etc/selinux/restorecond.conf file,
# and restores the correct security context.
### END INIT INFO
EOF
addscript portmap <<EOF
### BEGIN INIT INFO
# Provides: portmap
# Required-Start: $network
# Required-Stop: $network
# Should-Start: $named
# Should-Stop: $named
# Default-Start: S 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
EOF
addscript pppd-dns <<EOF
### BEGIN INIT INFO
# Provides: pppd-dns
# Required-Start: $local_fs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Restore resolv.conf if the system crashed.
### END INIT INFO
EOF
addscript procps <<EOF
### BEGIN INIT INFO
# Provides: procps
# Required-Start: mountkernfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Configure kernel parameters at boottime
# Description: Loads kernel parameters that are specified in
/etc/sysctl.conf
### END INIT INFO
EOF
addscript rc.local <<EOF
### BEGIN INIT INFO
# Provides: rc.local
# Required-Start: $remote_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO
EOF
addscript reboot <<EOF
### BEGIN INIT INFO
# Provides: reboot
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop: 6
# Short-Description: Execute the reboot command.
# Description:
### END INIT INFO
EOF
addscript rmnologin <<EOF
### BEGIN INIT INFO
# Provides: rmnologin
# Required-Start: $remote_fs $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Remove /etc/nologin at boot
# Description: This script removes the /etc/nologin file as the
# last step in the boot process, if DELAYLOGIN=yes.
# If DELAYLOGIN=no, /etc/nologin was not created by
# bootmisc earlier in the boot process.
### END INIT INFO
EOF
addscript rng-tools <<EOF
### BEGIN INIT INFO
# Provides: rng-tools
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
EOF
addscript rsync <<EOF
### BEGIN INIT INFO
# Provides: rsyncd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: fast remote file copy program daemon
# Description: rsync is a program that allows files to be copied
to and
# from remote machines in much the same way as rcp.
# This provides rsyncd daemon functionality.
### END INIT INFO
EOF
addscript rsyslog <<EOF
### BEGIN INIT INFO
# Provides: syslog
# Required-Start: $remote_fs $time
# Required-Stop: $remote_fs $time
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: enhanced syslogd
# Description: Rsyslog is an enhanced multi-threaded syslogd.
# It is quite compatible to stock sysklogd and can be
# used as a drop-in replacement.
### END INIT INFO
EOF
addscript screen-cleanup <<EOF
### BEGIN INIT INFO
# Provides: screen-cleanup
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: S
# Default-Stop:
# Short-Description: screen sessions cleaning
### END INIT INFO
EOF
addscript sendsigs <<EOF
### BEGIN INIT INFO
# Provides: sendsigs
# Required-Start:
# Required-Stop: umountnfs
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Kill all remaining processes.
# Description:
### END INIT INFO
EOF
addscript shorewall <<EOF
### BEGIN INIT INFO
# Provides: shorewall
# Required-Start: $network
# Required-Stop: $network
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Configure the firewall at boot time
# Description: Configure the firewall according to the rules
specified in
# /etc/shorewall
### END INIT INFO
EOF
addscript single <<EOF
### BEGIN INIT INFO
# Provides: single
# Required-Start: $local_fs $all killprocs
# Required-Stop:
# Default-Start: 1
# Default-Stop:
# Short-Description: executed by init(8) upon entering runlevel 1 (single).
### END INIT INFO
EOF
addscript smartmontools <<EOF
### BEGIN INIT INFO
# Provides: smartmontools
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: SMART monitoring daemon
### END INIT INFO
EOF
addscript ssh <<EOF
### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: OpenBSD Secure Shell server
### END INIT INFO
EOF
addscript stop-bootlogd <<EOF
### BEGIN INIT INFO
# Provides: stop-bootlogd
# Required-Start: $remote_fs rmnologin
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Stop bootlogd
# Description: See the init.d/bootlogd script
### END INIT INFO
EOF
addscript stop-bootlogd-single <<EOF
### BEGIN INIT INFO
# Provides: stop-bootlogd-single
# Required-Start: $remote_fs $all
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Stop bootlogd in single user mode
# Description: See the init.d/bootlogd script
### END INIT INFO
EOF
addscript sudo <<EOF
### BEGIN INIT INFO
# Provides: sudo
# Required-Start: $local_fs $remote_fs
# Required-Stop:
# Default-Start: S
# Default-Stop:
### END INIT INFO
EOF
addscript sudo.dpkg-bak <<EOF
### BEGIN INIT INFO
# Provides: sudo
# Required-Start: $local_fs $remote_fs
# Required-Stop:
# Default-Start: S 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
EOF
addscript sysklogd <<EOF
### BEGIN INIT INFO
# Provides: sysklogd
# Required-Start: $remote_fs $time
# Required-Stop: $remote_fs $time
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: System logger
### END INIT INFO
EOF
addscript system-tools-backends <<EOF
### BEGIN INIT INFO
# Provides: system-tools-backends
# Required-Start: $local_fs dbus
# Required-Stop: $local_fs dbus
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Gnome System Tools Backends
# Description: The Gnome System Tools Backends daemon handles
root-needed
# operations to configure your machine with the Gnome
System
# Tools.
### END INIT INFO
EOF
addscript tftpd-hpa <<EOF
### BEGIN INIT INFO
# Provides: tftp-hpa
# Required-Start: $local_fs $remote_fs $syslog $network
# Required-Stop: $local_fs $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: HPA's tftp client
# Description: tftp server to allow booting clients which support
# the PXE protocol.
### END INIT INFO
EOF
addscript timeoutd <<EOF
### BEGIN INIT INFO
# Provides: timeoutd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop the user timeout daemon
### END INIT INFO
EOF
addscript timidity <<EOF
### BEGIN INIT INFO
# Provides: timidity
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop timidity
# Description: TiMidity++ is a very high quality software-only MIDI
sequencer
# and MOD player.
### END INIT INFO
EOF
addscript udev <<EOF
### BEGIN INIT INFO
# Provides: udev
# Required-Start: mountkernfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Start udevd, populate /dev and load drivers.
### END INIT INFO
EOF
addscript udev-mtab <<EOF
### BEGIN INIT INFO
# Provides: udev-mtab
# Required-Start: udev checkroot
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Add to mtab the entry for /dev.
### END INIT INFO
EOF
addscript umountfs <<EOF
### BEGIN INIT INFO
# Provides: umountfs
# Required-Start:
# Required-Stop: umountroot
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Turn off swap and unmount all local file systems.
# Description:
### END INIT INFO
EOF
addscript umountnfs.sh <<EOF
### BEGIN INIT INFO
# Provides: umountnfs
# Required-Start:
# Required-Stop: umountfs
# Should-Stop: $network $portmap nfs-common
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Unmount all network filesystems except the root fs.
# Description: Also unmounts all virtual filesystems (proc, devfs,
# devpts, usbfs, sysfs) that are not mounted at the
# top level.
### END INIT INFO
EOF
addscript umountroot <<EOF
### BEGIN INIT INFO
# Provides: umountroot
# Required-Start:
# Required-Stop:
# Should-Stop: halt reboot kexec
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Mount the root filesystem read-only.
### END INIT INFO
EOF
addscript urandom <<EOF
### BEGIN INIT INFO
# Provides: urandom
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Save and restore random seed between restarts.
# Description This script saves the random seed between restarts.
# It is called from the boot, halt and reboot scripts.
### END INIT INFO
EOF
addscript x11-common <<EOF
### BEGIN INIT INFO
# Provides: x11-common
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop:
### END INIT INFO
EOF
ln -s ../init.d/avahi-daemon rc0.d/K03avahi-daemon
ln -s ../init.d/hal rc0.d/K03hal
ln -s ../init.d/system-tools-backends rc0.d/K03system-tools-backends
ln -s ../init.d/acct rc0.d/K04acct
ln -s ../init.d/acpid rc0.d/K04acpid
ln -s ../init.d/anacron rc0.d/K04anacron
ln -s ../init.d/apache2 rc0.d/K04apache2
ln -s ../init.d/atd rc0.d/K04atd
ln -s ../init.d/courier-authdaemon rc0.d/K04courier-authdaemon
ln -s ../init.d/courier-imap rc0.d/K04courier-imap
ln -s ../init.d/cron rc0.d/K04cron
ln -s ../init.d/dhcp3-server rc0.d/K04dhcp3-server
ln -s ../init.d/exim4 rc0.d/K04exim4
ln -s ../init.d/gpm rc0.d/K04gpm
ln -s ../init.d/hddtemp rc0.d/K04hddtemp
ln -s ../init.d/hotkey-setup rc0.d/K04hotkey-setup
ln -s ../init.d/irqbalance rc0.d/K04irqbalance
ln -s ../init.d/kdm rc0.d/K04kdm
ln -s ../init.d/klogd rc0.d/K04klogd
ln -s ../init.d/openbsd-inetd rc0.d/K04openbsd-inetd
ln -s ../init.d/policycoreutils rc0.d/K04policycoreutils
ln -s ../init.d/rng-tools rc0.d/K04rng-tools
ln -s ../init.d/rsync rc0.d/K04rsync
ln -s ../init.d/smartmontools rc0.d/K04smartmontools
ln -s ../init.d/ssh rc0.d/K04ssh
ln -s ../init.d/tftpd-hpa rc0.d/K04tftpd-hpa
ln -s ../init.d/timeoutd rc0.d/K04timeoutd
ln -s ../init.d/alsa-utils rc0.d/K05alsa-utils
ln -s ../init.d/console-screen.sh rc0.d/K05console-screen.sh
ln -s ../init.d/ddclient rc0.d/K05ddclient
ln -s ../init.d/rsyslog rc0.d/K05rsyslog
ln -s ../init.d/sysklogd rc0.d/K05sysklogd
ln -s ../init.d/timidity rc0.d/K05timidity
ln -s ../init.d/sendsigs rc0.d/K06sendsigs
ln -s ../init.d/umountnfs.sh rc0.d/K07umountnfs.sh
ln -s ../init.d/bittorrent rc0.d/K08bittorrent
ln -s ../init.d/openvpn rc0.d/K08openvpn
ln -s ../init.d/portmap rc0.d/K08portmap
ln -s ../init.d/shorewall rc0.d/K08shorewall
ln -s ../init.d/networking rc0.d/K09networking
ln -s ../init.d/nfs-common rc0.d/K09nfs-common
ln -s ../init.d/fancontrol rc0.d/K10fancontrol
ln -s ../init.d/fuse rc0.d/K10fuse
ln -s ../init.d/hwclock.sh rc0.d/K10hwclock.sh
ln -s ../init.d/ifupdown rc0.d/K10ifupdown
ln -s ../init.d/pppd-dns rc0.d/K10pppd-dns
ln -s ../init.d/urandom rc0.d/K10urandom
ln -s ../init.d/mountoverflowtmp rc0.d/K11mountoverflowtmp
ln -s ../init.d/hwclockfirst.sh rc0.d/K17hwclockfirst.sh
ln -s ../init.d/umountfs rc0.d/K19umountfs
ln -s ../init.d/umountroot rc0.d/K20umountroot
ln -s ../init.d/halt rc0.d/K21halt
ln -s ../init.d/cups rc1.d/K02cups
ln -s ../init.d/avahi-daemon rc1.d/K03avahi-daemon
ln -s ../init.d/hal rc1.d/K03hal
ln -s ../init.d/system-tools-backends rc1.d/K03system-tools-backends
ln -s ../init.d/acct rc1.d/K04acct
ln -s ../init.d/acpid rc1.d/K04acpid
ln -s ../init.d/anacron rc1.d/K04anacron
ln -s ../init.d/apache2 rc1.d/K04apache2
ln -s ../init.d/atd rc1.d/K04atd
ln -s ../init.d/courier-authdaemon rc1.d/K04courier-authdaemon
ln -s ../init.d/courier-imap rc1.d/K04courier-imap
ln -s ../init.d/cron rc1.d/K04cron
ln -s ../init.d/dbus rc1.d/K04dbus
ln -s ../init.d/dhcp3-server rc1.d/K04dhcp3-server
ln -s ../init.d/exim4 rc1.d/K04exim4
ln -s ../init.d/gpm rc1.d/K04gpm
ln -s ../init.d/hddtemp rc1.d/K04hddtemp
ln -s ../init.d/hotkey-setup rc1.d/K04hotkey-setup
ln -s ../init.d/irqbalance rc1.d/K04irqbalance
ln -s ../init.d/kdm rc1.d/K04kdm
ln -s ../init.d/klogd rc1.d/K04klogd
ln -s ../init.d/openbsd-inetd rc1.d/K04openbsd-inetd
ln -s ../init.d/rng-tools rc1.d/K04rng-tools
ln -s ../init.d/rsync rc1.d/K04rsync
ln -s ../init.d/smartmontools rc1.d/K04smartmontools
ln -s ../init.d/ssh rc1.d/K04ssh
ln -s ../init.d/tftpd-hpa rc1.d/K04tftpd-hpa
ln -s ../init.d/timeoutd rc1.d/K04timeoutd
ln -s ../init.d/console-screen.sh rc1.d/K05console-screen.sh
ln -s ../init.d/ddclient rc1.d/K05ddclient
ln -s ../init.d/rsyslog rc1.d/K05rsyslog
ln -s ../init.d/sysklogd rc1.d/K05sysklogd
ln -s ../init.d/timidity rc1.d/K05timidity
ln -s ../init.d/guidance-backends rc1.d/K06guidance-backends
ln -s ../init.d/bittorrent rc1.d/K08bittorrent
ln -s ../init.d/openvpn rc1.d/K08openvpn
ln -s ../init.d/portmap rc1.d/K08portmap
ln -s ../init.d/nfs-common rc1.d/K09nfs-common
ln -s ../init.d/fancontrol rc1.d/K10fancontrol
ln -s ../init.d/pppd-dns rc1.d/K10pppd-dns
ln -s ../init.d/killprocs rc1.d/S01killprocs
ln -s ../init.d/bootchart rc1.d/S17bootchart
ln -s ../init.d/single rc1.d/S18single
ln -s ../init.d/fancontrol rc2.d/S12fancontrol
ln -s ../init.d/nfs-common rc2.d/S13nfs-common
ln -s ../init.d/bittorrent rc2.d/S14bittorrent
ln -s ../init.d/openvpn rc2.d/S14openvpn
ln -s ../init.d/portmap rc2.d/S14portmap
ln -s ../init.d/guidance-backends rc2.d/S16guidance-backends
ln -s ../init.d/rc.local rc2.d/S16rc.local
ln -s ../init.d/bootchart rc2.d/S17bootchart
ln -s ../init.d/ddclient rc2.d/S17ddclient
ln -s ../init.d/rsyslog rc2.d/S17rsyslog
ln -s ../init.d/stop-bootlogd rc2.d/S17stop-bootlogd
ln -s ../init.d/sysklogd rc2.d/S17sysklogd
ln -s ../init.d/timidity rc2.d/S17timidity
ln -s ../init.d/acct rc2.d/S18acct
ln -s ../init.d/acpid rc2.d/S18acpid
ln -s ../init.d/anacron rc2.d/S18anacron
ln -s ../init.d/apache2 rc2.d/S18apache2
ln -s ../init.d/atd rc2.d/S18atd
ln -s ../init.d/courier-authdaemon rc2.d/S18courier-authdaemon
ln -s ../init.d/courier-imap rc2.d/S18courier-imap
ln -s ../init.d/cron rc2.d/S18cron
ln -s ../init.d/dbus rc2.d/S18dbus
ln -s ../init.d/dhcp3-server rc2.d/S18dhcp3-server
ln -s ../init.d/exim4 rc2.d/S18exim4
ln -s ../init.d/gpm rc2.d/S18gpm
ln -s ../init.d/hddtemp rc2.d/S18hddtemp
ln -s ../init.d/hotkey-setup rc2.d/S18hotkey-setup
ln -s ../init.d/irqbalance rc2.d/S18irqbalance
ln -s ../init.d/kdm rc2.d/S18kdm
ln -s ../init.d/klogd rc2.d/S18klogd
ln -s ../init.d/openbsd-inetd rc2.d/S18openbsd-inetd
ln -s ../init.d/policycoreutils rc2.d/S18policycoreutils
ln -s ../init.d/rng-tools rc2.d/S18rng-tools
ln -s ../init.d/rsync rc2.d/S18rsync
ln -s ../init.d/smartmontools rc2.d/S18smartmontools
ln -s ../init.d/ssh rc2.d/S18ssh
ln -s ../init.d/tftpd-hpa rc2.d/S18tftpd-hpa
ln -s ../init.d/timeoutd rc2.d/S18timeoutd
ln -s ../init.d/avahi-daemon rc2.d/S19avahi-daemon
ln -s ../init.d/hal rc2.d/S19hal
ln -s ../init.d/system-tools-backends rc2.d/S19system-tools-backends
ln -s ../init.d/cups rc2.d/S20cups
ln -s ../init.d/rmnologin rc2.d/S21rmnologin
ln -s ../init.d/fancontrol rc3.d/S12fancontrol
ln -s ../init.d/nfs-common rc3.d/S13nfs-common
ln -s ../init.d/bittorrent rc3.d/S14bittorrent
ln -s ../init.d/openvpn rc3.d/S14openvpn
ln -s ../init.d/portmap rc3.d/S14portmap
ln -s ../init.d/guidance-backends rc3.d/S16guidance-backends
ln -s ../init.d/rc.local rc3.d/S16rc.local
ln -s ../init.d/bootchart rc3.d/S17bootchart
ln -s ../init.d/ddclient rc3.d/S17ddclient
ln -s ../init.d/rsyslog rc3.d/S17rsyslog
ln -s ../init.d/stop-bootlogd rc3.d/S17stop-bootlogd
ln -s ../init.d/sysklogd rc3.d/S17sysklogd
ln -s ../init.d/timidity rc3.d/S17timidity
ln -s ../init.d/acct rc3.d/S18acct
ln -s ../init.d/acpid rc3.d/S18acpid
ln -s ../init.d/anacron rc3.d/S18anacron
ln -s ../init.d/apache2 rc3.d/S18apache2
ln -s ../init.d/atd rc3.d/S18atd
ln -s ../init.d/courier-authdaemon rc3.d/S18courier-authdaemon
ln -s ../init.d/courier-imap rc3.d/S18courier-imap
ln -s ../init.d/cron rc3.d/S18cron
ln -s ../init.d/dbus rc3.d/S18dbus
ln -s ../init.d/dhcp3-server rc3.d/S18dhcp3-server
ln -s ../init.d/exim4 rc3.d/S18exim4
ln -s ../init.d/gpm rc3.d/S18gpm
ln -s ../init.d/hddtemp rc3.d/S18hddtemp
ln -s ../init.d/hotkey-setup rc3.d/S18hotkey-setup
ln -s ../init.d/irqbalance rc3.d/S18irqbalance
ln -s ../init.d/kdm rc3.d/S18kdm
ln -s ../init.d/klogd rc3.d/S18klogd
ln -s ../init.d/openbsd-inetd rc3.d/S18openbsd-inetd
ln -s ../init.d/policycoreutils rc3.d/S18policycoreutils
ln -s ../init.d/rng-tools rc3.d/S18rng-tools
ln -s ../init.d/rsync rc3.d/S18rsync
ln -s ../init.d/smartmontools rc3.d/S18smartmontools
ln -s ../init.d/ssh rc3.d/S18ssh
ln -s ../init.d/tftpd-hpa rc3.d/S18tftpd-hpa
ln -s ../init.d/timeoutd rc3.d/S18timeoutd
ln -s ../init.d/avahi-daemon rc3.d/S19avahi-daemon
ln -s ../init.d/hal rc3.d/S19hal
ln -s ../init.d/system-tools-backends rc3.d/S19system-tools-backends
ln -s ../init.d/cups rc3.d/S20cups
ln -s ../init.d/rmnologin rc3.d/S21rmnologin
ln -s ../init.d/fancontrol rc4.d/S12fancontrol
ln -s ../init.d/nfs-common rc4.d/S13nfs-common
ln -s ../init.d/bittorrent rc4.d/S14bittorrent
ln -s ../init.d/openvpn rc4.d/S14openvpn
ln -s ../init.d/portmap rc4.d/S14portmap
ln -s ../init.d/guidance-backends rc4.d/S16guidance-backends
ln -s ../init.d/rc.local rc4.d/S16rc.local
ln -s ../init.d/bootchart rc4.d/S17bootchart
ln -s ../init.d/ddclient rc4.d/S17ddclient
ln -s ../init.d/rsyslog rc4.d/S17rsyslog
ln -s ../init.d/stop-bootlogd rc4.d/S17stop-bootlogd
ln -s ../init.d/sysklogd rc4.d/S17sysklogd
ln -s ../init.d/timidity rc4.d/S17timidity
ln -s ../init.d/acct rc4.d/S18acct
ln -s ../init.d/acpid rc4.d/S18acpid
ln -s ../init.d/anacron rc4.d/S18anacron
ln -s ../init.d/apache2 rc4.d/S18apache2
ln -s ../init.d/atd rc4.d/S18atd
ln -s ../init.d/courier-authdaemon rc4.d/S18courier-authdaemon
ln -s ../init.d/courier-imap rc4.d/S18courier-imap
ln -s ../init.d/cron rc4.d/S18cron
ln -s ../init.d/dbus rc4.d/S18dbus
ln -s ../init.d/dhcp3-server rc4.d/S18dhcp3-server
ln -s ../init.d/exim4 rc4.d/S18exim4
ln -s ../init.d/gpm rc4.d/S18gpm
ln -s ../init.d/hddtemp rc4.d/S18hddtemp
ln -s ../init.d/hotkey-setup rc4.d/S18hotkey-setup
ln -s ../init.d/irqbalance rc4.d/S18irqbalance
ln -s ../init.d/kdm rc4.d/S18kdm
ln -s ../init.d/klogd rc4.d/S18klogd
ln -s ../init.d/openbsd-inetd rc4.d/S18openbsd-inetd
ln -s ../init.d/policycoreutils rc4.d/S18policycoreutils
ln -s ../init.d/rng-tools rc4.d/S18rng-tools
ln -s ../init.d/rsync rc4.d/S18rsync
ln -s ../init.d/smartmontools rc4.d/S18smartmontools
ln -s ../init.d/ssh rc4.d/S18ssh
ln -s ../init.d/tftpd-hpa rc4.d/S18tftpd-hpa
ln -s ../init.d/timeoutd rc4.d/S18timeoutd
ln -s ../init.d/avahi-daemon rc4.d/S19avahi-daemon
ln -s ../init.d/hal rc4.d/S19hal
ln -s ../init.d/system-tools-backends rc4.d/S19system-tools-backends
ln -s ../init.d/cups rc4.d/S20cups
ln -s ../init.d/rmnologin rc4.d/S21rmnologin
ln -s ../init.d/fancontrol rc5.d/S12fancontrol
ln -s ../init.d/nfs-common rc5.d/S13nfs-common
ln -s ../init.d/bittorrent rc5.d/S14bittorrent
ln -s ../init.d/openvpn rc5.d/S14openvpn
ln -s ../init.d/portmap rc5.d/S14portmap
ln -s ../init.d/guidance-backends rc5.d/S16guidance-backends
ln -s ../init.d/rc.local rc5.d/S16rc.local
ln -s ../init.d/bootchart rc5.d/S17bootchart
ln -s ../init.d/ddclient rc5.d/S17ddclient
ln -s ../init.d/rsyslog rc5.d/S17rsyslog
ln -s ../init.d/stop-bootlogd rc5.d/S17stop-bootlogd
ln -s ../init.d/sysklogd rc5.d/S17sysklogd
ln -s ../init.d/timidity rc5.d/S17timidity
ln -s ../init.d/acct rc5.d/S18acct
ln -s ../init.d/acpid rc5.d/S18acpid
ln -s ../init.d/anacron rc5.d/S18anacron
ln -s ../init.d/apache2 rc5.d/S18apache2
ln -s ../init.d/atd rc5.d/S18atd
ln -s ../init.d/courier-authdaemon rc5.d/S18courier-authdaemon
ln -s ../init.d/courier-imap rc5.d/S18courier-imap
ln -s ../init.d/cron rc5.d/S18cron
ln -s ../init.d/dbus rc5.d/S18dbus
ln -s ../init.d/dhcp3-server rc5.d/S18dhcp3-server
ln -s ../init.d/exim4 rc5.d/S18exim4
ln -s ../init.d/gpm rc5.d/S18gpm
ln -s ../init.d/hddtemp rc5.d/S18hddtemp
ln -s ../init.d/hotkey-setup rc5.d/S18hotkey-setup
ln -s ../init.d/irqbalance rc5.d/S18irqbalance
ln -s ../init.d/kdm rc5.d/S18kdm
ln -s ../init.d/klogd rc5.d/S18klogd
ln -s ../init.d/openbsd-inetd rc5.d/S18openbsd-inetd
ln -s ../init.d/policycoreutils rc5.d/S18policycoreutils
ln -s ../init.d/rng-tools rc5.d/S18rng-tools
ln -s ../init.d/rsync rc5.d/S18rsync
ln -s ../init.d/smartmontools rc5.d/S18smartmontools
ln -s ../init.d/ssh rc5.d/S18ssh
ln -s ../init.d/tftpd-hpa rc5.d/S18tftpd-hpa
ln -s ../init.d/timeoutd rc5.d/S18timeoutd
ln -s ../init.d/avahi-daemon rc5.d/S19avahi-daemon
ln -s ../init.d/hal rc5.d/S19hal
ln -s ../init.d/system-tools-backends rc5.d/S19system-tools-backends
ln -s ../init.d/cups rc5.d/S20cups
ln -s ../init.d/rmnologin rc5.d/S21rmnologin
ln -s ../init.d/avahi-daemon rc6.d/K03avahi-daemon
ln -s ../init.d/hal rc6.d/K03hal
ln -s ../init.d/system-tools-backends rc6.d/K03system-tools-backends
ln -s ../init.d/acct rc6.d/K04acct
ln -s ../init.d/acpid rc6.d/K04acpid
ln -s ../init.d/anacron rc6.d/K04anacron
ln -s ../init.d/apache2 rc6.d/K04apache2
ln -s ../init.d/atd rc6.d/K04atd
ln -s ../init.d/courier-authdaemon rc6.d/K04courier-authdaemon
ln -s ../init.d/courier-imap rc6.d/K04courier-imap
ln -s ../init.d/cron rc6.d/K04cron
ln -s ../init.d/dhcp3-server rc6.d/K04dhcp3-server
ln -s ../init.d/exim4 rc6.d/K04exim4
ln -s ../init.d/gpm rc6.d/K04gpm
ln -s ../init.d/hddtemp rc6.d/K04hddtemp
ln -s ../init.d/hotkey-setup rc6.d/K04hotkey-setup
ln -s ../init.d/irqbalance rc6.d/K04irqbalance
ln -s ../init.d/kdm rc6.d/K04kdm
ln -s ../init.d/klogd rc6.d/K04klogd
ln -s ../init.d/openbsd-inetd rc6.d/K04openbsd-inetd
ln -s ../init.d/policycoreutils rc6.d/K04policycoreutils
ln -s ../init.d/rng-tools rc6.d/K04rng-tools
ln -s ../init.d/rsync rc6.d/K04rsync
ln -s ../init.d/smartmontools rc6.d/K04smartmontools
ln -s ../init.d/ssh rc6.d/K04ssh
ln -s ../init.d/tftpd-hpa rc6.d/K04tftpd-hpa
ln -s ../init.d/timeoutd rc6.d/K04timeoutd
ln -s ../init.d/alsa-utils rc6.d/K05alsa-utils
ln -s ../init.d/console-screen.sh rc6.d/K05console-screen.sh
ln -s ../init.d/ddclient rc6.d/K05ddclient
ln -s ../init.d/rsyslog rc6.d/K05rsyslog
ln -s ../init.d/sysklogd rc6.d/K05sysklogd
ln -s ../init.d/timidity rc6.d/K05timidity
ln -s ../init.d/sendsigs rc6.d/K06sendsigs
ln -s ../init.d/umountnfs.sh rc6.d/K07umountnfs.sh
ln -s ../init.d/bittorrent rc6.d/K08bittorrent
ln -s ../init.d/openvpn rc6.d/K08openvpn
ln -s ../init.d/portmap rc6.d/K08portmap
ln -s ../init.d/shorewall rc6.d/K08shorewall
ln -s ../init.d/networking rc6.d/K09networking
ln -s ../init.d/nfs-common rc6.d/K09nfs-common
ln -s ../init.d/fancontrol rc6.d/K10fancontrol
ln -s ../init.d/fuse rc6.d/K10fuse
ln -s ../init.d/hwclock.sh rc6.d/K10hwclock.sh
ln -s ../init.d/ifupdown rc6.d/K10ifupdown
ln -s ../init.d/pppd-dns rc6.d/K10pppd-dns
ln -s ../init.d/urandom rc6.d/K10urandom
ln -s ../init.d/mountoverflowtmp rc6.d/K11mountoverflowtmp
ln -s ../init.d/hwclockfirst.sh rc6.d/K17hwclockfirst.sh
ln -s ../init.d/umountfs rc6.d/K19umountfs
ln -s ../init.d/umountroot rc6.d/K20umountroot
ln -s ../init.d/reboot rc6.d/K21reboot
ln -s ../init.d/glibc.sh rcS.d/S01glibc.sh
ln -s ../init.d/hostname.sh rcS.d/S02hostname.sh
ln -s ../init.d/mountkernfs.sh rcS.d/S02mountkernfs.sh
ln -s ../init.d/udev rcS.d/S03udev
ln -s ../init.d/mountdevsubfs.sh rcS.d/S04mountdevsubfs.sh
ln -s ../init.d/procps rcS.d/S04procps
ln -s ../init.d/bootlogd rcS.d/S05bootlogd
ln -s ../init.d/hwclockfirst.sh rcS.d/S05hwclockfirst.sh
ln -s ../init.d/keymap.sh rcS.d/S05keymap.sh
ln -s ../init.d/checkroot.sh rcS.d/S06checkroot.sh
ln -s rcS.d/S06wouter-keys
ln -s ../init.d/ifupdown-clean rcS.d/S07ifupdown-clean
ln -s ../init.d/module-init-tools rcS.d/S07module-init-tools
ln -s ../init.d/mtab.sh rcS.d/S07mtab.sh
ln -s ../init.d/udev-mtab rcS.d/S07udev-mtab
ln -s ../init.d/checkfs.sh rcS.d/S08checkfs.sh
ln -s ../init.d/mountall.sh rcS.d/S09mountall.sh
ln -s ../init.d/mountall-bootclean.sh rcS.d/S10mountall-bootclean.sh
ln -s ../init.d/mountoverflowtmp rcS.d/S11mountoverflowtmp
ln -s ../init.d/fuse rcS.d/S12fuse
ln -s ../init.d/hwclock.sh rcS.d/S12hwclock.sh
ln -s ../init.d/ifupdown rcS.d/S12ifupdown
ln -s ../init.d/lm-sensors rcS.d/S12lm-sensors
ln -s ../init.d/pppd-dns rcS.d/S12pppd-dns
ln -s ../init.d/urandom rcS.d/S12urandom
ln -s ../init.d/x11-common rcS.d/S12x11-common
ln -s ../init.d/networking rcS.d/S13networking
ln -s ../init.d/portmap rcS.d/S14portmap
ln -s ../init.d/shorewall rcS.d/S14shorewall
ln -s ../init.d/mountnfs.sh rcS.d/S15mountnfs.sh
ln -s ../init.d/mountnfs-bootclean.sh rcS.d/S16mountnfs-bootclean.sh
ln -s ../init.d/alsa-utils rcS.d/S17alsa-utils
ln -s ../init.d/bootmisc.sh rcS.d/S17bootmisc.sh
ln -s ../init.d/console-screen.sh rcS.d/S17console-screen.sh
ln -s ../init.d/nviboot rcS.d/S17nviboot
ln -s ../init.d/screen-cleanup rcS.d/S17screen-cleanup
ln -s ../init.d/sudo rcS.d/S17sudo
ln -s ../init.d/policycoreutils rcS.d/S18policycoreutils
ln -s ../init.d/stop-bootlogd-single rcS.d/S18stop-bootlogd-single
I do have a script with no LSB header.
It is called
/etc/rcS.d/S06wouter-keys and contains
setkeycodes \
e03b 59 \
e008 60 \
e007 61 \
e03e 62 \
e03f 63 \
e040 64 \
e041 65 \
e042 66 \
e043 67 \
e023 68 \
e057 87 \
e058 88
With kind regards,
Wouter
Petter Reinholdtsen wrote:
[Wouter Michiel Koolen-Wijkstra]
Hope that helps,
It definitely help. I suspect the script=0x0 is the problem. Can you
provide the output from running it under valgrind as well?
I suspect your system have an init.d script with a broken LSB header.
Can you try to run this script and attach the output?
#!/bin/sh
#
# Extract key information from the current to try to generate a test
# suite script to demonstrate detected bugs.
echo "cat <<'EOF' > \$tmpdir\$insconf"
grep -v '#' /etc/insserv.conf |grep -v '^$'
echo "EOF"
for f in /etc/init.d/*; do
name=$(basename $f)
case $name in
README|rc|rcS|skeleton)
;;
*)
echo "addscript $name <<EOF"
sed -n -r '/^### BEGIN INIT INFO/, /END INIT INFO/p' < $f
echo "EOF"
echo
;;
esac
done
cd /etc
for f in rc?.d/*; do
case $f in
*/README)
;;
*)
echo ln -s $(readlink $f) $f
;;
esac
done
Happy hacking,
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]