From a20baebb363de548d0f70a53c74639d51f28b7a6 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sun, 25 Feb 2018 11:49:11 +0000 Subject: [PATCH] Create a .profile for fun --- rootfs_overlay/etc/init.d/S98 | 3 +-- rootfs_overlay/root/.profile | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 rootfs_overlay/root/.profile diff --git a/rootfs_overlay/etc/init.d/S98 b/rootfs_overlay/etc/init.d/S98 index 0fb807b..6e2a17d 100755 --- a/rootfs_overlay/etc/init.d/S98 +++ b/rootfs_overlay/etc/init.d/S98 @@ -1,6 +1,5 @@ #!/bin/sh -echo 'S98' -# insmod /hello.ko +echo "hello S98" if [ -n "$lkmc_eval" ]; then eval "$lkmc_eval" fi diff --git a/rootfs_overlay/root/.profile b/rootfs_overlay/root/.profile new file mode 100644 index 0000000..d59f2e4 --- /dev/null +++ b/rootfs_overlay/root/.profile @@ -0,0 +1,4 @@ +# https://unix.stackexchange.com/questions/176027/ash-profile-configuration-file +echo "hello $(pwd)/.profile" +# Does not inherit init environment variables. +#env