Skip to content
Snippets Groups Projects
Commit 09029297 authored by Bob Mottram's avatar Bob Mottram
Browse files

Path prefix

parent 84355903
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ if [ ! -f /tmp/.upgrading ]; then
fi
msgstr=$(echo -e $"USB device connected on ${DEVPATH}\\n\\n${devices_changed}")
${PROJECT_NAME}-notification -m "$msgstr" -s $"${PROJECT_NAME} USB canary"
/usr/local/bin/${PROJECT_NAME}-notification -m "$msgstr" -s $"${PROJECT_NAME} USB canary"
echo "${ACTION}" > /tmp/usb-canary
echo "${MY_EMAIL_ADDRESS}" >> /tmp/usb-canary
date >> /tmp/usb-canary
......
......@@ -707,7 +707,7 @@ function create_usb_canary {
return
fi
echo "ACTION==\"add\", KERNEL==\"sd*[!0-9]\", RUN+=\"/usr/local/bin/${PROJECT_NAME}-usb-canary\"" > /etc/udev/rules.d/00-usb-canary.rules
echo "ACTION==\"add\", KERNEL==\"sd*[!0-9]\", RUN+=\"/bin/bash /usr/local/bin/${PROJECT_NAME}-usb-canary\"" > /etc/udev/rules.d/00-usb-canary.rules
udevadm control --reload-rules
mark_completed "${FUNCNAME[0]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment