beta release for 0.01

This commit is contained in:
brent s
2017-05-05 12:32:07 -04:00
parent 126b96e169
commit 83ee6d51ef
4 changed files with 76 additions and 7 deletions

10
extras/mkinitcpio.hook Normal file
View File

@@ -0,0 +1,10 @@
run_hook () {
msg ":: Starting AIF-NG..."
/usr/bin/aifclient &
#nohup /usr/bin/aifclient &
#disown -h %1
}
run_cleanuphook () {
pkill -9 python
}

17
extras/mkinitcpio.install Normal file
View File

@@ -0,0 +1,17 @@
buid() {
add_binary "/usr/bin/python"
add_binary "/usr/bin/aifclient"
add_runscript
}
help()
{
cat <<HELPEOF
Starts aifclient from an initramfs. Requires (and should be after):
-any networking hooks (unless you embed an XML config inside the initrramfs as well)
-aif (or aif-git) be installed OR the aifclient(.py) file located at /usr/bin/aifclient
-python (3) be installed
A word of warning, this will create a pretty huge initramfs since python is rather large.
HELPEOF
}

10
extras/systemd.unit Normal file
View File

@@ -0,0 +1,10 @@
[Unit]
Description=AIF-NG Client Service
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/aifclient
[Install]
WantedBy=multi-user.target