BusyBox: Difference between revisions

From ArchWiki
(Remove reference to the community repository)
(→‎init: rm section, got deleted from AUR https://lists.archlinux.org/archives/list/aur-requests@lists.archlinux.org/thread/BWDGVTZ4U35T4ZDE7LXA7PVDEAJEPFZN/#MW5HYS6ZQ22TQAUNPJZTIC2HMMLZQ65F)
 
(2 intermediate revisions by 2 users not shown)
Line 19: Line 19:
== Usage ==
== Usage ==


=== init ===
=== getty ===


Init scripts can be used together with busybox-init, for example {{AUR|minirc-git}}. See [[init]] for details.
The gettys are defined in the file {{ic|/etc/inittab}}. By default, getty is started on ttys 1 through 4.


=== getty ===
In order to enable/disable gettys:


The gettys are defined in the file {{ic|/etc/inittab}}. By default, getty is started on ttys 1 through 4.
{{hc|/etc/inittab|2=
tty2::respawn:/sbin/agetty -8 -s 38400 tty2 linux
}}


In order to enable/disable gettys, you just put this line in {{ic|/etc/inittab}}.
Just replace {{ic|tty2}} with the tty you want getty to start on.
{{bc|
If you want init to ask you before starting getty, then replace {{ic|respawn}} with {{ic|askfirst}}.
<nowiki>tty2::respawn:/sbin/agetty -8 -s 38400 tty2 linux
</nowiki>}}
Just replace tty2 with the tty you want getty to start on.
If you want init to ask you before starting the gettty, then replace {{ic|respawn}} with {{ic|askfirst}}.


=== mdev ===
=== mdev ===

Latest revision as of 09:18, 24 April 2024

BusyBox provides many common UNIX utilities in a single small executable for embedded systems. The package includes runit; see runit for more information.

Note: Do not expect full drop-in replacement and compatibility. Certain utilities may not exist, and for those that do, there may be missing options.

Installation

Install the busybox package.

Busybox commands are symbolic links to /usr/bin/busybox and thus take very little space. This is especially interesting for low-footprint systems.

Usage

getty

The gettys are defined in the file /etc/inittab. By default, getty is started on ttys 1 through 4.

In order to enable/disable gettys:

/etc/inittab
tty2::respawn:/sbin/agetty -8 -s 38400 tty2 linux

Just replace tty2 with the tty you want getty to start on. If you want init to ask you before starting getty, then replace respawn with askfirst.

mdev

See Gentoo:mdev.

runit

See runit.

See also