usb-mount@.service 224 B

12345678
  1. # copy to /etc/systemd/system path
  2. [Unit]
  3. Description=Mount USB Drive on %i
  4. [Service]
  5. Type=oneshot
  6. RemainAfterExit=true
  7. ExecStart=/casaOS/server/shell/usb-mount.sh add %i
  8. ExecStop=/casaOS/server/shell/usb-mount.sh remove %i