From 823d499e4f57151b8ded478727b102b53941436f Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 30 Apr 2023 17:39:21 +0300 Subject: like 350 lines total of scripts and makefile --- src/initramfs-init.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/initramfs-init.sh') diff --git a/src/initramfs-init.sh b/src/initramfs-init.sh index a566b57..6a812b9 100644 --- a/src/initramfs-init.sh +++ b/src/initramfs-init.sh @@ -1,12 +1,15 @@ -#!/bin/sh - # mount the proc file system mkdir /proc mount -t proc proc /proc +# create devices +mkdir -p /dev/input +mknod /dev/input/event0 c 13 64 + +# insert module insmod /usr/keylogger.ko -# run each test +# run tests echo "$(cd usr; ls -v1 tests | while read line; do tests/$line; echo; done)" exec /bin/sh -- cgit v1.2.3