8 changed files with 38 additions and 16 deletions
@ -0,0 +1,15 @@ |
|||
#!/bin/bash |
|||
|
|||
set -Eeuo pipefail |
|||
|
|||
ret=0 |
|||
for tool in /etc/quadlets/base/install-tools.d/*.sh; do |
|||
tool_name="$(basename "$tool" .sh)" |
|||
echo "Installing $tool_name..." |
|||
if ! "$tool"; then |
|||
echo "Failed to install $tool_name!" >&2 |
|||
ret=1 |
|||
fi |
|||
done |
|||
|
|||
exit $ret |
|||
@ -0,0 +1,5 @@ |
|||
# Tools installation scripts
|
|||
TARGET_INSTALL_TOOLS_FILES = $(patsubst other/base/install-tools.d/%, $(TARGET_CHROOT)/etc/quadlets/base/install-tools.d/%, $(wildcard other/base/install-tools.d/*)) |
|||
TARGET_EXAMPLE_FILES += $(TARGET_INSTALL_TOOLS_FILES) |
|||
$(TARGET_CHROOT)/etc/quadlets/base/install-tools.d/%.sh: other/base/install-tools.d/%.sh |
|||
install -m 0755 -o root -g root $< $@ |
|||
@ -1,15 +0,0 @@ |
|||
[Unit] |
|||
Description=Install fastfetch |
|||
Wants=network-online.target |
|||
After=network-online.target |
|||
ConditionPathExists=!/usr/local/bin/fastfetch |
|||
ConditionPathExists=/etc/quadlets/base/fastfetch.env |
|||
|
|||
[Service] |
|||
Type=oneshot |
|||
RemainAfterExit=yes |
|||
ExecStart=/etc/quadlets/base/install-fastfetch.sh |
|||
EnvironmentFile=/etc/quadlets/base/fastfetch.env |
|||
|
|||
[Install] |
|||
WantedBy=multi-user.target |
|||
@ -0,0 +1,14 @@ |
|||
[Unit] |
|||
Description=Install tools |
|||
Wants=network-online.target |
|||
After=network-online.target |
|||
ConditionPathExists=/etc/quadlets/base/install-tools.env |
|||
|
|||
[Service] |
|||
Type=oneshot |
|||
RemainAfterExit=yes |
|||
ExecStart=/etc/quadlets/base/install-tools.sh |
|||
EnvironmentFile=/etc/quadlets/base/install-tools.env |
|||
|
|||
[Install] |
|||
WantedBy=multi-user.target |
|||
Loading…
Reference in new issue