summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-up/void11
1 files changed, 11 insertions, 0 deletions
diff --git a/hooks/pre-up/void b/hooks/pre-up/void
new file mode 100755
index 0000000..72f1c42
--- /dev/null
+++ b/hooks/pre-up/void
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# We'll use xpkg from xtools to find installable packages
+if ! [ -x "$(command -v xpkg)" ]; then
+ sudo xbps-install xtools
+fi
+
+# Set up file sync
+if [ ! -f ~/repository.list ]; then
+ xpkg -m > ~/repository.list
+fi \ No newline at end of file