beta release for 0.01
This commit is contained in:
10
extras/mkinitcpio.hook
Normal file
10
extras/mkinitcpio.hook
Normal 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
17
extras/mkinitcpio.install
Normal 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
10
extras/systemd.unit
Normal 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
|
||||
Reference in New Issue
Block a user