usb canary only installs once
This commit is contained in:
parent
c7bffe6a77
commit
aabb4503f0
|
@ -552,8 +552,14 @@ function disable_null_passwords {
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_usb_canary {
|
function create_usb_canary {
|
||||||
|
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
|
||||||
|
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+=\"/usr/local/bin/${PROJECT_NAME}-usb-canary\"" > /etc/udev/rules.d/00-usb-canary.rules
|
||||||
udevadm control --reload-rules
|
udevadm control --reload-rules
|
||||||
|
|
||||||
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_firewall {
|
function setup_firewall {
|
||||||
|
|
Loading…
Reference in New Issue