From edc6e14c8ce8bd7186c37d076404005750ab1250 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Wed, 28 Jun 2017 23:04:36 +0100 Subject: [PATCH] S99 --- README.md | 13 +++++++++++++ rootfs_overlay/etc/init.d/S99 | 4 ++++ 2 files changed, 17 insertions(+) create mode 100755 rootfs_overlay/etc/init.d/S99 diff --git a/README.md b/README.md index eb23aa4..10aba85 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,19 @@ TODO: Ctrl + C kills the emulator, it is not sent to guest processes. See: - - +## Automatic startup commands + +When debugging a module, it becomes tedious to wait for build and re-type: + + root + /mymod.sh + +Instead, you can add your test commands to: + + rootfs_overlay/etc/init.d/S99 + +and they will be run automatically before the login prompt. + ## Debugging To GDB the Linux kernel, first run: diff --git a/rootfs_overlay/etc/init.d/S99 b/rootfs_overlay/etc/init.d/S99 new file mode 100755 index 0000000..28ee2ab --- /dev/null +++ b/rootfs_overlay/etc/init.d/S99 @@ -0,0 +1,4 @@ +#!/bin/sh +echo 'S99' +# insmod /hello.ko +exit 0