computer-playbook/roles/independent-auto-usb-backup/templates/usb-auto-backup.sh.j2

8 lines
165 B
Plaintext
Raw Normal View History

2023-04-26 11:51:26 +02:00
#! /bin/sh
env >>/tmp/test.log
file "/sys${DEVPATH}" >>/tmp/test.log
if [ "${ACTION}" = add -a -d "/sys${DEVPATH}" ]; then
echo "add ${DEVPATH}" >>/tmp/test.log
fi