mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Assume kernel has devtmpfs enabled --> cleanup device creation & mount
Cleanup device creation and initial mount by assuming that the kernel has devtmpfs enabled. This is the default for most modern GNU/Linux distributions. See http://lwn.net/Articles/331818/ for more info. Also, since finit is targeted at deeply embedded systems hooks for the BusyBox udev replacement, mdev has been added. If MDEV is defined in the build it will take care of both hotplugging of devices and initial setup of /dev Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
2f527215d0
commit
855c7d8251
5 files changed
+76
-111
No files matched your search
@@ -22,7 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef LISTEN_INITCTL
|
||||
#include <features.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
@@ -45,6 +44,7 @@ struct init_request {
|
||||
char data[368];
|
||||
};
|
||||
|
||||
#ifdef LISTEN_INITCTL
|
||||
/* Standard reboot/shutdown utilities talk to init using /dev/initctl.
|
||||
* We should check if the fifo was recreated and reopen it.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user