* [Buildroot] Different runlevels support
@ 2012-01-02 11:02 Mahanteshwari Hiremath
2012-01-02 12:14 ` Diego Iastrubni
0 siblings, 1 reply; 5+ messages in thread
From: Mahanteshwari Hiremath @ 2012-01-02 11:02 UTC (permalink / raw)
To: buildroot
Hi,
Can anyone tell me buildrrot sysvinit inittab supports for how many runlevels?
as I can only able to see runlevel1 in the inittab provided by sysvinit and works fine. If it supports for all, tell me what are the necessary changes or selections i have to do to get all runlevels, as i want to enable full multiuser mode with x11 login(runlevel 5). This is my generated inittab after selecting and building for sysvinit.
# /etc/inittab
#
# This inittab is a basic inittab sample for sysvinit, which mimics
# Buildroot's default inittab for Busybox.
id:1:initdefault:
proc::sysinit:/bin/mount -t proc proc /proc
rwmo::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
dpts::sysinit:/bin/mkdir -p /dev/pts
moun::sysinit:/bin/mount -a
host::sysinit:/bin/hostname -F /etc/hostname
init::sysinit:/etc/init.d/rcS
1:1:respawn:/sbin/getty 38400 tty1
2:1:respawn:/sbin/getty 38400 tty2
S0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
# Logging junk
mess::sysinit:/bin/touch /var/log/messages
sysl:1:respawn:/sbin/syslogd -n -m 0
klog:1:respawn:/sbin/klogd -n
# Stuff to do for the 3-finger salute
rebo::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
sklo:6:wait:/usr/bin/killall klogd
ssys:6:wait:/usr/bin/killall syslogd
umou:6:wait:/bin/umount -a -r
swap:6:wait:/sbin/swapoff -a
~
Regards,
Mahanteshwari Hiremath.
Larsen & Toubro Limited
www.larsentoubro.com
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120102/28f3d8c5/attachment-0001.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Different runlevels support
2012-01-02 11:02 [Buildroot] Different runlevels support Mahanteshwari Hiremath
@ 2012-01-02 12:14 ` Diego Iastrubni
2012-01-03 5:02 ` Mahanteshwari Hiremath
0 siblings, 1 reply; 5+ messages in thread
From: Diego Iastrubni @ 2012-01-02 12:14 UTC (permalink / raw)
To: buildroot
On Mon, Jan 2, 2012 at 1:02 PM, Mahanteshwari Hiremath <
Mahanteshwari.Hiremath@lnties.com> wrote:
> Hi,
> Can anyone tell me buildrrot sysvinit inittab supports for how many
> runlevels?
> as I can only able to see runlevel1 in the inittab provided by sysvinit
> and works fine. If it supports for all, tell me what are the necessary
> changes or selections i have to do to get all runlevels, as i want to
> enable full multiuser mode with x11 login(runlevel 5). This is my generated
> inittab after selecting and building for sysvinit.
>
Busybox's init does not support run levels. All scripts are executed always.
Are you sure you are running sysv init and not busybox?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120102/5e8a8f88/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Different runlevels support
2012-01-02 12:14 ` Diego Iastrubni
@ 2012-01-03 5:02 ` Mahanteshwari Hiremath
2012-01-03 14:10 ` Michael S. Zick
0 siblings, 1 reply; 5+ messages in thread
From: Mahanteshwari Hiremath @ 2012-01-03 5:02 UTC (permalink / raw)
To: buildroot
>>Busybox's init does not support run levels. All scripts are executed always.
>>Are you sure you are running sysv init and not busybox?
Hi,
Yes I am using sysv init not busy box, I have completely disabled init utilities in busybox and enabled sysvinit.
And the contets of the sysvinit generated inittab are like this,
# /etc/inittab
#
# This inittab is a basic inittab sample for sysvinit, which mimics
# Buildroot's default inittab for Busybox.
id:1:initdefault:
proc::sysinit:/bin/mount -t proc proc /proc
rwmo::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
dpts::sysinit:/bin/mkdir -p /dev/pts
moun::sysinit:/bin/mount -a
host::sysinit:/bin/hostname -F /etc/hostname
init::sysinit:/etc/init.d/rcS
1:1:respawn:/sbin/getty 38400 tty1
2:1:respawn:/sbin/getty 38400 tty2
S0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
# Logging junk
mess::sysinit:/bin/touch /var/log/messages
sysl:1:respawn:/sbin/syslogd -n -m 0
klog:1:respawn:/sbin/klogd -n
# Stuff to do for the 3-finger salute
rebo::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
sklo:6:wait:/usr/bin/killall klogd
ssys:6:wait:/usr/bin/killall syslogd
umou:6:wait:/bin/umount -a -r
swap:6:wait:/sbin/swapoff -a
can u tell what else to do next to get all other runlevels.
Regards,
Mahanteshwari.
Larsen & Toubro Limited
www.larsentoubro.com
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120103/214fbfe7/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Different runlevels support
2012-01-03 5:02 ` Mahanteshwari Hiremath
@ 2012-01-03 14:10 ` Michael S. Zick
2012-01-03 14:16 ` Michael S. Zick
0 siblings, 1 reply; 5+ messages in thread
From: Michael S. Zick @ 2012-01-03 14:10 UTC (permalink / raw)
To: buildroot
On Mon January 2 2012, Mahanteshwari Hiremath wrote:
> >>Busybox's init does not support run levels. All scripts are executed always.
>
> >>Are you sure you are running sysv init and not busybox?
>
> Hi,
> Yes I am using sysv init not busy box, I have completely disabled init
> utilities in busybox and enabled sysvinit.
> And the contets of the sysvinit generated inittab are like this,
>
The command: 'man inittab' on a system with sysv installed will give
you all the gory details, but...
>
> # /etc/inittab
> #
> # This inittab is a basic inittab sample for sysvinit, which mimics
> # Buildroot's default inittab for Busybox.
> id:1:initdefault:
>
> proc::sysinit:/bin/mount -t proc proc /proc
> rwmo::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
> dpts::sysinit:/bin/mkdir -p /dev/pts
> moun::sysinit:/bin/mount -a
> host::sysinit:/bin/hostname -F /etc/hostname
> init::sysinit:/etc/init.d/rcS
>
> 1:1:respawn:/sbin/getty 38400 tty1
> 2:1:respawn:/sbin/getty 38400 tty2
>
If you want the above to happen in all levels except 0 & 6 :
1:12345:respawn:/sbin/getty 38400 tty1
2:12345:respawn:/sbin/getty 38400 tty2
Other examples in the man(ual), such as how to use the S&K scripts.
If you don't have a system with the sysvinit manual installed,
Google can find you a copy posted on the web.
Mike
> S0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
>
> # Logging junk
> mess::sysinit:/bin/touch /var/log/messages
> sysl:1:respawn:/sbin/syslogd -n -m 0
> klog:1:respawn:/sbin/klogd -n
>
> # Stuff to do for the 3-finger salute
> rebo::ctrlaltdel:/sbin/reboot
>
> # Stuff to do before rebooting
> sklo:6:wait:/usr/bin/killall klogd
> ssys:6:wait:/usr/bin/killall syslogd
> umou:6:wait:/bin/umount -a -r
> swap:6:wait:/sbin/swapoff -a
>
>
> can u tell what else to do next to get all other runlevels.
>
>
>
> Regards,
> Mahanteshwari.
>
>
> Larsen & Toubro Limited
>
> www.larsentoubro.com
>
> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Different runlevels support
2012-01-03 14:10 ` Michael S. Zick
@ 2012-01-03 14:16 ` Michael S. Zick
0 siblings, 0 replies; 5+ messages in thread
From: Michael S. Zick @ 2012-01-03 14:16 UTC (permalink / raw)
To: buildroot
On Tue January 3 2012, Michael S. Zick wrote:
> > Larsen & Toubro Limited
> >
> > www.larsentoubro.com
> >
> > This Email may contain confidential or privileged information for the
> > intended recipient (s) If you are not the intended recipient, please
> > do not use or disseminate the information, notify the sender and delete
> > it from your system.
> >
>
By the way,
Lots of luck in getting the World to take down all the copies of the
sysvinit manual. ;-)
Mike
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-03 14:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-02 11:02 [Buildroot] Different runlevels support Mahanteshwari Hiremath
2012-01-02 12:14 ` Diego Iastrubni
2012-01-03 5:02 ` Mahanteshwari Hiremath
2012-01-03 14:10 ` Michael S. Zick
2012-01-03 14:16 ` Michael S. Zick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox