From d405670716b948d5156db56e4fc4fb0af10d4fd7 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 2 Aug 2011 19:43:23 -0500 Subject: Add support for unambiguous top level commands for unpriviledged users; generate allowed-op short commands at boot time --- etc/init.d/vyatta-router | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'etc/init.d') diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router index e10f054..43c9e29 100755 --- a/etc/init.d/vyatta-router +++ b/etc/init.d/vyatta-router @@ -186,6 +186,12 @@ mount_slash_config () fi } +generate_unpriv_cmds () +{ + source /opt/vyatta/share/vyatta-op/functions/interpreter/vyatta-unpriv + vyatta_unpriv_gen_allowed +} + start () { log_action_begin_msg "Mounting Vyatta Config" @@ -230,6 +236,7 @@ start () telinit q bind_mount_boot chmod g-w,o-w / + generate_unpriv_cmds } stop() -- cgit v1.2.3