Daehyun
6/10/2018 - 3:53 PM

Mount helium as Launch Daemon

Mount helium as Launch Daemon

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>daehyun.helium</string>
<key>Program</key>
  <string>/Users/daehyun/mount-helium.sh</string>
  <key>RunAtLoad</key>
  <true/>
  <key>KeepAlive</key>
  <true/>
  <key>StandardErrorPath</key>
  <string>/var/log/daehyun.helium.log</string>
</dict>
</plist>
#!/bin/bash

mkdir -p \helium
/usr/local/bin/bindfs -f \
  -u root -g helium -p u=rwD:g=rwD \
  /.mnt_rootonly/helium /helium
umount -f /helium