summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <r00t@square-r00t.net>2019-08-19 00:34:38 -0400
committerbrent s <r00t@square-r00t.net>2019-08-19 00:34:38 -0400
commit7474012ada777c1f3cf3c75dd5bc7763a58e5ca5 (patch)
tree5f85e62f5a16c5ffaa2ac4c7e118664fd634ae7c
parent84b6c80b07fdb663aa7b4c0d063d3cc906837bd3 (diff)
downloadOpTools-7474012ada777c1f3cf3c75dd5bc7763a58e5ca5.tar.xz
adding pacman hook for bootsync
-rw-r--r--sys/BootSync/bootsync.hook14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/BootSync/bootsync.hook b/sys/BootSync/bootsync.hook
new file mode 100644
index 0000000..36ff48b
--- /dev/null
+++ b/sys/BootSync/bootsync.hook
@@ -0,0 +1,14 @@
+# The following would be placed in /etc/pacman.d/hooks/ directory (you may need to create it if it doesn't exist) as bootsync.hook
+# It assumes you have:
+# * a properly configured /etc/bootsync.xml
+# * /usr/local/bin/bootsync symlinked to <OpTools>/sys/BootSync/bootsync.py
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Type = File
+Target = boot/*
+
+[Action]
+When = PostTransaction
+Exec = /usr/local/bin/bootsync