From e14a5488926bb5f9aaeb40e3b74803ef0daf9467 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 5 Jul 2011 19:04:40 -0400 Subject: Fixed all expert, startstop, and status symlinks --- bgp-expert-html.lsp | 2 +- bgp-startstop-html.lsp | 2 +- bgp-status-html.lsp | 2 +- ospf-expert-html.lsp | 13 +------------ ospf-startstop-html.lsp | 23 +---------------------- ospf-status-html.lsp | 34 +--------------------------------- zebra-expert-html.lsp | 2 +- zebra-startstop-html.lsp | 2 +- 8 files changed, 8 insertions(+), 72 deletions(-) mode change 100755 => 120000 ospf-expert-html.lsp mode change 100755 => 120000 ospf-startstop-html.lsp mode change 100755 => 120000 ospf-status-html.lsp diff --git a/bgp-expert-html.lsp b/bgp-expert-html.lsp index 945bc0b..207f324 120000 --- a/bgp-expert-html.lsp +++ b/bgp-expert-html.lsp @@ -1 +1 @@ -/usr/share/acf/app/expert-html.lsp \ No newline at end of file +../expert-html.lsp \ No newline at end of file diff --git a/bgp-startstop-html.lsp b/bgp-startstop-html.lsp index ce3188f..0ea2627 120000 --- a/bgp-startstop-html.lsp +++ b/bgp-startstop-html.lsp @@ -1 +1 @@ -/usr/share/acf/app/startstop-html.lsp \ No newline at end of file +../startstop-html.lsp \ No newline at end of file diff --git a/bgp-status-html.lsp b/bgp-status-html.lsp index f61ec19..b2f8480 120000 --- a/bgp-status-html.lsp +++ b/bgp-status-html.lsp @@ -1 +1 @@ -/usr/share/acf/app/status-html.lsp \ No newline at end of file +../status-html.lsp \ No newline at end of file diff --git a/ospf-expert-html.lsp b/ospf-expert-html.lsp deleted file mode 100755 index 5db9173..0000000 --- a/ospf-expert-html.lsp +++ /dev/null @@ -1,12 +0,0 @@ -<% local form, viewlibrary, page_info, session = ... %> -<% require("viewfunctions") %> - -<% if viewlibrary and viewlibrary.dispatch_component then - viewlibrary.dispatch_component("status") -end %> - -<% -local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1") -local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "filedetails-html.lsp") -func(form, viewlibrary, page_info, session) -%> diff --git a/ospf-expert-html.lsp b/ospf-expert-html.lsp new file mode 120000 index 0000000..207f324 --- /dev/null +++ b/ospf-expert-html.lsp @@ -0,0 +1 @@ +../expert-html.lsp \ No newline at end of file diff --git a/ospf-startstop-html.lsp b/ospf-startstop-html.lsp deleted file mode 100755 index c98208b..0000000 --- a/ospf-startstop-html.lsp +++ /dev/null @@ -1,22 +0,0 @@ -<% local data, viewlibrary, page_info = ... %> - -

Management

- -<% if data.value.result then %> -

Previous action result

-<% if data.value.result.value ~= "" then %> -

<%= string.gsub(html.html_escape(data.value.result.value), "\n", "
") %>

-<% end if data.value.result.errtxt then %> -

<%= string.gsub(html.html_escape(data.value.result.errtxt), "\n", "
") %>

-<% end end %> - -
-
" method="POST"> -
Program control-panel
-
-<% for i,act in ipairs(data.value.actions.value) do %> - -<% end %> -
-
-
diff --git a/ospf-startstop-html.lsp b/ospf-startstop-html.lsp new file mode 120000 index 0000000..0ea2627 --- /dev/null +++ b/ospf-startstop-html.lsp @@ -0,0 +1 @@ +../startstop-html.lsp \ No newline at end of file diff --git a/ospf-status-html.lsp b/ospf-status-html.lsp deleted file mode 100755 index 1f5e1f8..0000000 --- a/ospf-status-html.lsp +++ /dev/null @@ -1,33 +0,0 @@ -<% local data, viewlibrary, page_info, session = ... -require("viewfunctions") -%> - -<% displaycommandresults({"install","edit"}, session) %> -<% displaycommandresults({"startstop"}, session) %> - -

System Info

-
-<% -displayitem(data.value.status) - -displayitem(data.value.version) -if data.value.version and data.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then -%> -
Install package
-
-
-<% -end - -displayitem(data.value.autostart) -if not (data.value.version and data.value.version.errtxt) and data.value.autostart and data.value.autostart.errtxt and viewlibrary.check_permission("alpine-baselayout/rc/edit") then -%> -
Enable autostart
-
-
-<% end %> -
- -<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("startstop") then - viewlibrary.dispatch_component("startstop") -end %> diff --git a/ospf-status-html.lsp b/ospf-status-html.lsp new file mode 120000 index 0000000..b2f8480 --- /dev/null +++ b/ospf-status-html.lsp @@ -0,0 +1 @@ +../status-html.lsp \ No newline at end of file diff --git a/zebra-expert-html.lsp b/zebra-expert-html.lsp index 945bc0b..207f324 120000 --- a/zebra-expert-html.lsp +++ b/zebra-expert-html.lsp @@ -1 +1 @@ -/usr/share/acf/app/expert-html.lsp \ No newline at end of file +../expert-html.lsp \ No newline at end of file diff --git a/zebra-startstop-html.lsp b/zebra-startstop-html.lsp index ce3188f..0ea2627 120000 --- a/zebra-startstop-html.lsp +++ b/zebra-startstop-html.lsp @@ -1 +1 @@ -/usr/share/acf/app/startstop-html.lsp \ No newline at end of file +../startstop-html.lsp \ No newline at end of file -- cgit v1.2.3