From 7ce9737dd7215ac6acb32daea9d78153e91de4d8 Mon Sep 17 00:00:00 2001 From: Jafar Al-Gharaibeh Date: Thu, 11 May 2017 16:52:27 -0500 Subject: snap: add vtysh as a "proper" command alias for frr.vtysh This allows direct access to vtysh without the "frr." prefix. The alias can be enabled by sudo snap frr vtysh Signed-off-by: Jafar Al-Gharaibeh --- snapcraft/README.snap_build.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'snapcraft/README.snap_build.md') diff --git a/snapcraft/README.snap_build.md b/snapcraft/README.snap_build.md index eeee6a17a..7c4284845 100644 --- a/snapcraft/README.snap_build.md +++ b/snapcraft/README.snap_build.md @@ -94,7 +94,16 @@ All the commands are prefixed with frr. frr.zebra-debug vtysh can be accessed as frr.vtysh (Make sure you have /snap/bin in your -path). If access as `vtysh` instead of `frr.vtysh` is needed, a symlink -can be created: +path). If access as `vtysh` instead of `frr.vtysh` is needed, you can enable it +via a snap alias as follows: - sudo ln -s /snap/bin/frr.vtysh /usr/local/bin/vtysh + sudo snap alias frr vtysh + +This will add the vtysh command to your /snap/bin for direct access. The output of + + sudo snap aliases + +should list vtysh command alias as enabled: + +App Alias Notes +frr.vtysh vtysh enabled -- cgit v1.2.3