use duo-init.sh to initialize some hardware interfaces

This commit is contained in:
carbon
2023-08-24 16:40:24 +08:00
parent be2a69546e
commit 8ff6876544
2 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,10 @@ case "$1" in
echo "Starting app..." echo "Starting app..."
if [ -f $SYSTEMPATH/duo-init.sh ]; then
. $SYSTEMPATH/duo-init.sh &
fi
if [ -f $SYSTEMPATH/blink.sh ]; then if [ -f $SYSTEMPATH/blink.sh ]; then
. $SYSTEMPATH/blink.sh & . $SYSTEMPATH/blink.sh &
fi fi

View File

@ -0,0 +1,6 @@
#!/bin/sh
# set PWR_GPIO[4] to gpio
devmem 0x0502707c 32 0x111
devmem 0x03001068 32 0x3