Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I just wrote a little program which logs all calls of bash during the boot process. This is a part of the output produced:

(root) '/bin/bash-' '-c' 'gzip -d -c /usr/share/kbd/keymaps/i386/qwerty/'
(root) '/bin/bash-' '-c' 'gzip -d -c /usr/share/kbd/keymaps/i386/qwerty/../include/'
(root) '/bin/bash-' '/etc/rc.multi'
(root) '/bin/bash-' '/etc/rc.d/syslog-ng' 'start'
(root) '/bin/bash-' '/etc/rc.d/dbus' 'start'
(root) '/bin/bash-' '/etc/rc.d/network' 'start'
(root) '/bin/bash-' '/usr/lib/dhcpcd/dhcpcd-run-hooks'
(root) '/bin/bash-' '/usr/lib/dhcpcd/dhcpcd-run-hooks'
(root) '/bin/bash-' '/usr/lib/dhcpcd/dhcpcd-run-hooks'
(root) '/bin/bash-' '/etc/rc.d/netfs' 'start'

First column is the user, 2nd the program called (I only log bash here), 3rd column are the arguments. Now assume I want to replace one of these calls: Where can I find them? I assume there must be some program/script/data file which has all these calls in it?!?

share|improve this question
The boot process is very distribution-specific. Which distro are you using? What are you really trying todo? – phunehehe Apr 4 '11 at 14:11
Archlinux. What I want to do is to forbid the use of bash -c. Therefore I want to replace all -c commands during bootup with a simple shell script – user6278 Apr 4 '11 at 14:42

1 Answer 1

For Arch, the boot process uses init, which reads configuration from /etc/initab. Customization may also be made in /etc/rc.conf, but I think you'll have to dig into the init scripts specified in /etc/initab. See Arch Boot Process for more information.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.