Skip to content

Instantly share code, notes, and snippets.

View bachradsusi's full-sized avatar

Petr Lautrbach bachradsusi

  • Red Hat, Inc.
  • Europe
View GitHub Profile
#!/bin/sh
POLICY_UNLOCKED=apply-policy
POLICY_LOCKED=reject
revert() {
usbguard set-parameter InsertedDevicePolicy $POLICY_UNLOCKED
}
trap revert SIGHUP SIGINT SIGTERM