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

8 lines
165 B
Django/Jinja

#! /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