-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from SEPIA-Framework/dev
Release candidate for SEPIA Home v2.5.1
- Loading branch information
Showing
21 changed files
with
316 additions
and
34 deletions.
There are no files selected for viewing
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
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
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
14 changes: 14 additions & 0 deletions
14
sepia-client-installation/rpi/hyperpixel4-backlight.service
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Sets up gpio-poweroff to handle Hyperpixel backlight upon shutdown/reboot | ||
ConditionPathExists=/usr/bin/hyperpixel4-init | ||
ConditionPathExists=/boot/overlays/gpio-poweroff.dtbo | ||
ConditionPathExists=/usr/bin/dtoverlay | ||
DefaultDependencies=no | ||
Before=umount.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/bin/sh -c '/sbin/rmmod gpio-backlight;/usr/bin/dtoverlay /boot/overlays/gpio-poweroff.dtbo gpiopin=19 active_low=1' | ||
|
||
[Install] | ||
WantedBy=reboot.target halt.target poweroff.target |
37 changes: 37 additions & 0 deletions
37
sepia-client-installation/rpi/runtime_commands/close_sepia.linux
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
# Stop Chromium | ||
is_chromium_running=0 | ||
case "$(ps aux | grep chromium-browser)" in *"sepia-client"*) is_chromium_running=1;; *) is_chromium_running=0;; esac | ||
if [ "$is_chromium_running" -eq "1" ]; then | ||
echo "Stopping Chromium with SEPIA" | ||
#kill $(ps aux | grep "[c]hromium-browser .*sepia-client" | awk '{print $2}') | ||
kill $(ps aux | grep "[c]hromium-browser.*sepia-client.*index.html" | awk '{print $2}') | ||
sleep 2 | ||
else | ||
echo "It seems no Chromium with SEPIA was running" | ||
fi | ||
|
||
# Stop Xvfb | ||
is_xvfb_running=0 | ||
case "$(ps aux | grep Xvfb)" in *"Xvfb :2072"*) is_xvfb_running=1;; *) is_xvfb_running=0;; esac | ||
if [ "$is_xvfb_running" -eq "1" ]; then | ||
echo "Stopping Xvfb server" | ||
kill $(ps aux | grep '[X]vfb :2072' | awk '{print $2}') | ||
sleep 2 | ||
else | ||
echo "It seems no Xvfb server was running" | ||
fi | ||
|
||
# Stop CLEXI | ||
is_clexi_running=0 | ||
case "$(ps aux | grep clexi)" in *clexi-server.js*) is_clexi_running=1;; *) is_clexi_running=0;; esac | ||
if [ "$is_clexi_running" -eq "1" ]; then | ||
echo "Stopping CLEXI server" | ||
pkill -f "clexi-server.js" | ||
else | ||
echo "It seems no CLEXI server was running" | ||
fi | ||
|
||
echo "" | ||
echo "DONE." |
Oops, something went wrong.