From 07183520f3f4d2f89e526055db418046d0d2450f Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 19 Oct 2007 11:26:15 -0700 Subject: move "system" configuration templates/scripts from vyatta-cfg. --- templates/system/syslog/console/facility/node.def | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 templates/system/syslog/console/facility/node.def (limited to 'templates/system/syslog/console/facility/node.def') diff --git a/templates/system/syslog/console/facility/node.def b/templates/system/syslog/console/facility/node.def new file mode 100644 index 00000000..bfe3856f --- /dev/null +++ b/templates/system/syslog/console/facility/node.def @@ -0,0 +1,11 @@ +tag: +type: txt +help: "Configure facility for console logging" +create: "sh -c \"LVL=`echo -n $(level/@) | tr '[a-z]' '[A-Z]'` && \ +/opt/vyatta/sbin/vyatta_update_syslog.pl '$(@)\\.' '\\/dev\\/console' \ +\\\"$(@).\\\\\$LVL\t/dev/console\n\\\"\" " +update: "sh -c \"LVL=`echo -n $(level/@) | tr '[a-z]' '[A-Z]'` && \ +/opt/vyatta/sbin/vyatta_update_syslog.pl '$(@)\\.' '\\/dev\\/console' \ +\\\"$(@).\\\\\$LVL\t/dev/console\n\\\"\" " +delete: "sh -c \"/opt/vyatta/sbin/vyatta_update_syslog.pl \ +'$(@)\\.' '\\/dev\\/console' ''\" " -- cgit v1.2.3