SmartFox: launcher, Siri Remote driver, Debian image and installer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=SmartFox: fill the new data partition (/var) with the factory defaults
|
||||
Documentation=file:/usr/lib/repart.d/50-sf-data.conf
|
||||
DefaultDependencies=no
|
||||
RequiresMountsFor=/var
|
||||
ConditionPathIsMountPoint=/var
|
||||
ConditionPathExists=!/var/.sf-data
|
||||
After=local-fs.target
|
||||
Before=sysinit.target systemd-tmpfiles-setup.service systemd-journal-flush.service systemd-random-seed.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/cp -a /usr/share/factory/var/. /var/
|
||||
ExecStart=/bin/touch /var/.sf-data
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=SmartFox: remote debugging (ssh) off after boot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/sf-remote-debug boot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=SmartFox: watch the remote debugging switch
|
||||
|
||||
[Path]
|
||||
PathModified=/var/lib/smartfox/remote-debug
|
||||
Unit=sf-remote-debug.service
|
||||
|
||||
[Install]
|
||||
WantedBy=paths.target
|
||||
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=SmartFox: remote debugging (ssh) on or off
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/sf-remote-debug
|
||||
13
image/mkosi.extra/usr/lib/systemd/system/sf-remote.service
Normal file
13
image/mkosi.extra/usr/lib/systemd/system/sf-remote.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=SmartFox Siri Remote driver
|
||||
After=bluetooth.service
|
||||
Wants=bluetooth.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/sf-remote --home-socket /run/user/1000/smartfox.sock
|
||||
Environment=RUST_LOG=info
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user