first commit
This commit is contained in:
17
external/packages/bsp/common/lib/systemd/system/bootsplash-ask-password-console.path
vendored
Normal file
17
external/packages/bsp/common/lib/systemd/system/bootsplash-ask-password-console.path
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Dispatch Password Requests to Console Directory Watch when bootsplash is active
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
Conflicts=systemd-ask-password-console.path
|
||||
Conflicts=systemd-ask-password-console.service
|
||||
After=plymouth-start.service
|
||||
Before=paths.target shutdown.target cryptsetup.target
|
||||
ConditionPathExists=!/run/plymouth/pid
|
||||
ConditionPathExists=/sys/devices/platform/bootsplash.0/enabled
|
||||
|
||||
[Path]
|
||||
DirectoryNotEmpty=/run/systemd/ask-password
|
||||
MakeDirectory=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
16
external/packages/bsp/common/lib/systemd/system/bootsplash-ask-password-console.service
vendored
Normal file
16
external/packages/bsp/common/lib/systemd/system/bootsplash-ask-password-console.service
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Dispatch Password Requests to Console when bootsplash is active
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
Conflicts=systemd-ask-password-console.path
|
||||
Conflicts=systemd-ask-password-console.service
|
||||
After=plymouth-start.service systemd-vconsole-setup.service
|
||||
Before=shutdown.target
|
||||
ConditionPathExists=!/run/plymouth/pid
|
||||
ConditionPathExists=/sys/devices/platform/bootsplash.0/enabled
|
||||
|
||||
[Service]
|
||||
ExecStartPre=-/bin/sh -c '/bin/cat /sys/devices/platform/bootsplash.0/enabled > /run/systemd/ask-password/bootsplash-state ; exec /bin/echo off > /sys/devices/platform/bootsplash.0/enabled'
|
||||
ExecStart=/usr/bin/systemd-tty-ask-password-agent --query --console
|
||||
ExecStartPost=-/bin/sh -c 'exec /bin/cat /run/systemd/ask-password/bootsplash-state > /sys/devices/platform/bootsplash.0/enabled ; /bin/rm /run/systemd/ask-password/bootsplash-state'
|
||||
Type=oneshot
|
||||
14
external/packages/bsp/common/lib/systemd/system/bootsplash-hide-when-booted.service
vendored
Normal file
14
external/packages/bsp/common/lib/systemd/system/bootsplash-hide-when-booted.service
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Hide bootsplash after starting the system
|
||||
After=graphical.target
|
||||
DefaultDependencies=no
|
||||
ConditionPathExists=/sys/devices/platform/bootsplash.0/enabled
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/bin/sh -c 'exec /bin/sleep 15'
|
||||
ExecStart=/bin/sh -c 'exec /bin/echo off > /sys/devices/platform/bootsplash.0/enabled'
|
||||
Restart=no
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
19
external/packages/bsp/common/lib/systemd/system/bootsplash-show-on-shutdown.service
vendored
Normal file
19
external/packages/bsp/common/lib/systemd/system/bootsplash-show-on-shutdown.service
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Show bootsplash on system halt, power off, reboot, or kexec
|
||||
Before=systemd-halt.service
|
||||
Before=systemd-kexec.service
|
||||
Before=systemd-poweroff.service
|
||||
Before=systemd-reboot.service
|
||||
DefaultDependencies=no
|
||||
ConditionPathExists=/sys/devices/platform/bootsplash.0/enabled
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c 'exec /bin/echo on > /sys/devices/platform/bootsplash.0/enabled'
|
||||
Restart=no
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=halt.target
|
||||
WantedBy=kexec.target
|
||||
WantedBy=poweroff.target
|
||||
WantedBy=reboot.target
|
||||
2
external/packages/bsp/common/lib/systemd/system/getty@tty1.service.d/10-noclear.conf
vendored
Normal file
2
external/packages/bsp/common/lib/systemd/system/getty@tty1.service.d/10-noclear.conf
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
TTYVTDisallocate=no
|
||||
8
external/packages/bsp/common/lib/systemd/system/orangepi-disable-autologin.service
vendored
Executable file
8
external/packages/bsp/common/lib/systemd/system/orangepi-disable-autologin.service
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Disable automated desktop login
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=rm -f /etc/lightdm/lightdm.conf.d/22-orangepi-autologin.conf
|
||||
TimeoutStopSec= 10
|
||||
ExecStop=systemctl disable orangepi-disable-autologin.timer
|
||||
8
external/packages/bsp/common/lib/systemd/system/orangepi-disable-autologin.timer
vendored
Executable file
8
external/packages/bsp/common/lib/systemd/system/orangepi-disable-autologin.timer
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Disable automated desktop login
|
||||
|
||||
[Timer]
|
||||
OnActiveSec=2min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
18
external/packages/bsp/common/lib/systemd/system/orangepi-firstrun-config.service
vendored
Normal file
18
external/packages/bsp/common/lib/systemd/system/orangepi-firstrun-config.service
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# Orange Pi firstrun configuration service
|
||||
# This service will run in parallel with other services
|
||||
|
||||
[Unit]
|
||||
Description=Orange Pi first run optional user configuration
|
||||
Wants=network-online.target
|
||||
After=network.target network-online.target
|
||||
ConditionPathExists=/boot/orangepi_first_run.txt
|
||||
ConditionPathExists=/root/.not_logged_in_yet
|
||||
|
||||
[Service]
|
||||
Type=idle
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/lib/orangepi/orangepi-firstrun-config
|
||||
TimeoutStartSec=2min
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
17
external/packages/bsp/common/lib/systemd/system/orangepi-firstrun.service
vendored
Normal file
17
external/packages/bsp/common/lib/systemd/system/orangepi-firstrun.service
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# Orange Pi firstrun service
|
||||
# Regenerates the SSH keys and performs additional first run tweaks
|
||||
# This service will run in parallel with other services
|
||||
|
||||
[Unit]
|
||||
Description=Orange Pi first run tasks
|
||||
Before=getty.target system-getty.slice
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/lib/orangepi/orangepi-firstrun start
|
||||
TimeoutStartSec=2min
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
19
external/packages/bsp/common/lib/systemd/system/orangepi-hardware-monitor.service
vendored
Normal file
19
external/packages/bsp/common/lib/systemd/system/orangepi-hardware-monitor.service
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# Orange Pi hardware monitor service
|
||||
# Detects and sets various features on boot
|
||||
# This service may block the boot process for up to 2 minutes
|
||||
|
||||
[Unit]
|
||||
Description=Orange Pi hardware monitoring
|
||||
Before=basic.target
|
||||
After=sysinit.target local-fs.target
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/lib/orangepi/orangepi-hardware-monitor start
|
||||
ExecStop=/usr/lib/orangepi/orangepi-hardware-monitor stop
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=2min
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
19
external/packages/bsp/common/lib/systemd/system/orangepi-hardware-optimize.service
vendored
Normal file
19
external/packages/bsp/common/lib/systemd/system/orangepi-hardware-optimize.service
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# Orange Pi hardware optimization service
|
||||
# Apply optimisations
|
||||
# This service may block the boot process for up to 2 minutes
|
||||
|
||||
[Unit]
|
||||
Description=Orange Pi hardware optimization
|
||||
Before=basic.target
|
||||
After=sysinit.target local-fs.target orangepi-hardware-monitor.target
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/lib/orangepi/orangepi-hardware-optimization start
|
||||
ExecStop=/usr/lib/orangepi/orangepi-hardware-optimization stop
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=2min
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
23
external/packages/bsp/common/lib/systemd/system/orangepi-ramlog.service
vendored
Normal file
23
external/packages/bsp/common/lib/systemd/system/orangepi-ramlog.service
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# Orange Pi ramlog service
|
||||
# Stores logs in (compressed) memory
|
||||
# This service may block the boot process for up to 30 sec
|
||||
|
||||
[Unit]
|
||||
Description=Orange Pi memory supported logging
|
||||
DefaultDependencies=no
|
||||
Before=rsyslog.service sysinit.target syslog.target
|
||||
After=orangepi-zram-config.service
|
||||
Conflicts=shutdown.target
|
||||
RequiresMountsFor=/var/log /var/log.hdd
|
||||
IgnoreOnIsolate=yes
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/lib/orangepi/orangepi-ramlog start
|
||||
ExecStop=/usr/lib/orangepi/orangepi-ramlog stop
|
||||
ExecReload=/usr/lib/orangepi/orangepi-ramlog write
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=30sec
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
18
external/packages/bsp/common/lib/systemd/system/orangepi-resize-filesystem.service
vendored
Normal file
18
external/packages/bsp/common/lib/systemd/system/orangepi-resize-filesystem.service
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# Orange Pi resize filesystem service
|
||||
# Resizes partition and filesystem on first/second boot
|
||||
# This service may block the boot process for up to 3 minutes
|
||||
|
||||
[Unit]
|
||||
Description=Orange Pi filesystem resize
|
||||
Before=basic.target
|
||||
After=sysinit.target local-fs.target
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/lib/orangepi/orangepi-resize-filesystem start
|
||||
TimeoutStartSec=6min
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
20
external/packages/bsp/common/lib/systemd/system/orangepi-zram-config.service
vendored
Normal file
20
external/packages/bsp/common/lib/systemd/system/orangepi-zram-config.service
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# Orange Pi ZRAM configuration service
|
||||
# Create 1 + number of cores compressed block devices
|
||||
# This service may block the boot process for up to 30 sec
|
||||
|
||||
[Unit]
|
||||
Description=Orange Pi ZRAM config
|
||||
DefaultDependencies=no
|
||||
After=local-fs.target
|
||||
Before=orangepi-ramlog.target
|
||||
Conflicts=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/lib/orangepi/orangepi-zram-config start
|
||||
ExecStop=/usr/lib/orangepi/orangepi-zram-config stop
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=30sec
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
2
external/packages/bsp/common/lib/systemd/system/serial-getty@.service.d/10-term.conf
vendored
Normal file
2
external/packages/bsp/common/lib/systemd/system/serial-getty@.service.d/10-term.conf
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Environment=TERM=linux
|
||||
11
external/packages/bsp/common/lib/systemd/system/setup-overlay.service
vendored
Normal file
11
external/packages/bsp/common/lib/systemd/system/setup-overlay.service
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Setup overlayfs automatically once
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/setup_overlay.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
2
external/packages/bsp/common/lib/systemd/system/systemd-journald.service.d/override.conf
vendored
Normal file
2
external/packages/bsp/common/lib/systemd/system/systemd-journald.service.d/override.conf
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
[Unit]
|
||||
After=orangepi-ramlog.service
|
||||
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
TimeoutStopSec=10
|
||||
10
external/packages/bsp/common/lib/udev/rules.d/71-axp-power-button.rules
vendored
Normal file
10
external/packages/bsp/common/lib/udev/rules.d/71-axp-power-button.rules
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# Handle AXP power button with systemd
|
||||
ACTION=="remove", GOTO="power_switch_end"
|
||||
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="axp20x-pek", TAG+="power-switch"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_PATH}=="platform-soc@3000000", TAG+="power-switch"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_PATH}=="platform-soc@3000000", ENV{ID_INPUT}="1"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_PATH}=="platform-soc@3000000", ENV{ID_INPUT_KEY}="1"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="axp[12][890]-supplyer", TAG+="power-switch"
|
||||
|
||||
LABEL="power_switch_end"
|
||||
Reference in New Issue
Block a user