move all our stuff into /lkmc in guest

Motivation: userland is getting several new subdirectories, it would be
too insane to just dump all of that in the guest root filesystem.

To alleviate the cd pain, .profile puts user inside /lkmc by default.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent 42f8de774a
commit 146e568db8
63 changed files with 369 additions and 338 deletions

27
rootfs_overlay/lkmc/gpio.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
set -e
cd /sys/class/gpio
echo 480 > export
echo 481 > export
echo 482 > export
echo 488 > export
echo 496 > export
echo out > gpio480/direction
echo out > gpio481/direction
echo out > gpio482/direction
echo out > gpio488/direction
echo out > gpio496/direction
v=1
while true; do
echo $v > gpio480/value
echo $v > gpio481/value
echo $v > gpio482/value
echo $v > gpio488/value
echo $v > gpio496/value
if [ $v -eq 1 ]; then
v=0
else
v=1
fi
sleep 1
done