Re: What is purpose of /init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Sorry!

and what is meant by
exec 0</dev/console
exec 1>/dev/console


On Thu, Aug 2, 2012 at 12:04 PM, Rahul Bedarkar <rpal143@xxxxxxxxx> wrote:
> Thanks Richard !
>
> And what is
> exec 0</dev/console
> exec 1>/dev/console
>
> On Thu, Aug 2, 2012 at 5:24 AM, richard -rw- weinberger
> <richard.weinberger@xxxxxxxxx> wrote:
>> On Wed, Aug 1, 2012 at 4:03 PM, Rahul Bedarkar <rpal143@xxxxxxxxx> wrote:
>>> Hi,
>>>
>>> I just saw contents of /init on my system.
>>>
>>> #!/bin/sh
>>> # devtmpfs does not get automounted for initramfs
>>> /bin/mount -t devtmpfs devtmpfs /dev
>>> exec 0</dev/console
>>> exec 1>/dev/console
>>> exec 2>/dev/console
>>> exec /sbin/init $*
>>>
>>> Can someone explain what is meant for ?
>>
>> It's a hack to get devtmpfs mounted before init starts...
>> Looks like your distro does not know CONFIG_DEVTMPFS_MOUNT. :-)
>>
>> --
>> Thanks,
>> //richard

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Networking]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

Add to Google Powered by Linux