Initial import

This commit is contained in:
Aad Versteden
2026-09-22 10:55:10 +02:00
commit a9349d3107
6 changed files with 330 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
all:
cc -O2 -Wall -Wextra -DSTAGING_ROOT=\"$(HOME)/opencode-workspace/workspace\" -o src/mountctl src/mountctl.c
install: all
mkdir -p workspace
touch mounts.list
ln -sf src/mount-opencode mount-opencode
ln -sf src/unmount-opencode unmount-opencode
ln -sf src/recover-mounts recover-mounts
@echo
@echo "Now make the helper setuid root:"
@echo " sudo chown root $(CURDIR)/src/mountctl && sudo chmod 4755 $(CURDIR)/src/mountctl"
clean:
rm -f src/mountctl
.PHONY: all install clean