This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=run iotproduct service and redirect stderr and stdout to a log file | |
After=multi-user.target | |
[Service] | |
Type=idle | |
ExecStart=/home/pi/iotproduct.sh > /home/pi/iotproduct.log 2>&1 | |
User=pi | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
multi-user.target @22.520s | |
└─getty.target @22.518s | |
└─serial-getty@ttyS0.service @22.504s | |
└─rc-local.service @21.338s +844ms | |
└─network.target @21.278s | |
└─dhcpcd.service @10.542s +10.718s | |
└─basic.target @10.338s | |
└─sockets.target @10.336s | |
└─dbus.socket @10.327s | |
└─sysinit.target @10.283s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=boot splash screen | |
[Service] | |
ExecStart=/usr/bin/python3 /path/to/framebuffer-pythonscript.py -img /path/to/bootimage.jpg | |
[Install] | |
WantedBy=basic.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=show image on starting shutdown | |
DefaultDependencies=no | |
Before=halt.target | |
[Service] | |
ExecStart=/usr/bin/python3 /path/to/framebuffer-pythonscript.py -img /path/to/powerdownimage.jpg | |
Type=oneshot | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=safe-to-power-off image | |
DefaultDependencies=no | |
After=umount.target | |
Before=final.target | |
[Service] | |
ExecStart=/usr/bin/python3 /path/to/framebuffer-pythonscript.py -img /path/to/unplugimage.jpg | |
Type=oneshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "start wifi-leaf" | |
exec python3 -m wifi-leaf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source .env | |
cd "$(dirname "$0")" | |
exec rsync -rlpt \ | |
--exclude '*.pyc' \ | |
--exclude '__pycache__/' \ | |
--exclude 'venv/' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eo pipefail | |
cd "$(dirname "$0")" | |
watchman watch-del-all | |
watchman watch . | |
watchman -- trigger . sync '**/*' -- ./sync.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ ! $UID -eq 0 ]]; then | |
echo "you must run this as root:" | |
echo "sudo $0" | |
exit 1 | |
fi | |
touch /home/pi/.hushlogin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source .env | |
set -eo pipefail | |
cd "$(dirname "$0")" | |
if [[ ! $UID -eq 0 ]]; then | |
echo "you must run this as root:" |
OlderNewer