summaryrefslogtreecommitdiffstats
path: root/sbin/devd/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/devd/parse.y')
-rw-r--r--sbin/devd/parse.y9
1 files changed, 8 insertions, 1 deletions
diff --git a/sbin/devd/parse.y b/sbin/devd/parse.y
index cfc9313..9269ef2 100644
--- a/sbin/devd/parse.y
+++ b/sbin/devd/parse.y
@@ -47,7 +47,7 @@
%token <str> STRING
%token <str> ID
%token OPTIONS SET DIRECTORY PID_FILE DEVICE_NAME ACTION MATCH
-%token ATTACH DETACH NOMATCH
+%token ATTACH DETACH NOMATCH NOTIFY
%type <eventproc> match_or_action_list
%type <eps> match_or_action match action
@@ -69,6 +69,7 @@ config
| attach_block
| detach_block
| nomatch_block
+ | notify_block
;
option_block
@@ -115,6 +116,12 @@ nomatch_block
| NOMATCH NUMBER BEGINBLOCK ENDBLOCK SEMICOLON
;
+notify_block
+ : NOTIFY NUMBER BEGINBLOCK match_or_action_list ENDBLOCK SEMICOLON
+ { add_notify($2, $4); }
+ | NOTIFY NUMBER BEGINBLOCK ENDBLOCK SEMICOLON
+ ;
+
match_or_action_list
: match_or_action { $$ = add_to_event_proc( NULL, $1); }
| match_or_action_list match_or_action
OpenPOWER on IntegriCloud