fathonix / ttyinit

TTY initializer, based on Busybox implementation of init.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ttyinit

This repository holds ttyinit - TTY initializer, based on Busybox implementation of init.

I wrote this because I'm creating a very minimal distro that uses Toybox and Rich Felker's init, which Toybox init isn't stable yet and would be standard (and a bit bloated like others) and Rich Felker's doesn't do any TTY initialization, so this tiny utility will do it.

Usage

ttyinit TTYPATH CMD [ARG1] [ARG2] ...

Example:

ttyinit /dev/tty1 /bin/sh

ttyinit must be run as superuser.

License

ttyinit is licensed under GPLv2, in accordance with Busybox license.
Copyright (C) 1995-2023 The Busybox Project
Copyright (C) 2023 Aldo Adirajasa Fathoni

About

TTY initializer, based on Busybox implementation of init.

License:GNU General Public License v2.0


Languages

Language:C 97.9%Language:Shell 2.1%