CasaOS/shell/usb-mount@.service

9 lines
218 B
SYSTEMD
Raw Normal View History

2021-09-26 02:35:02 +00:00
# copy to /etc/systemd/system path
[Unit]
Description=Mount USB Drive on %i
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/oasis/util/shell/usb-mount.sh add %i
ExecStop=/oasis/util/shell/usb-mount.sh remove %i