Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
epics-modules
require
Commits
53979ede
Commit
53979ede
authored
18 years ago
by
zimoch
Browse files
Options
Downloads
Patches
Plain Diff
allow log view (all reboots instead of last)
parent
62dc71e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
App/scripts/bootinfo
+7
-4
7 additions, 4 deletions
App/scripts/bootinfo
with
7 additions
and
4 deletions
App/scripts/bootinfo
+
7
−
4
View file @
53979ede
...
...
@@ -19,6 +19,7 @@ function help() {
echo
" -i : print IP_ADDR"
echo
" -A : print ARCH"
echo
" -a : print a lot (= -dtbSEViA)"
echo
" -L : log (print all reboots, not only last)"
echo
" --noheader : don't print table header"
echo
" -- : treat next word as pattern, even if starting with -"
exit
0
...
...
@@ -26,7 +27,7 @@ function help() {
function
version
()
{
echo
'Author: D. Zimoch'
echo
'$Date: 200
5/10/25 10:00:52
$'
echo
'$Date: 200
6/03/30 14:13:37
$'
echo
'$Source: /cvs/G/DRV/misc/App/scripts/bootinfo,v $'
exit
0
}
...
...
@@ -36,6 +37,7 @@ DEFAULTSEL=",BOOTDATE,BOOTTIME,BOOTPC,SLSBASE,
EPICSVER AS EPICS,VXWORKSVER AS VXWORKS,IPADDR AS IP_ADDR,
SUBSTR(VXWORKS,INSTR(VXWORKS,'/',-1,2)+1,
INSTR(VXWORKS,'/',-1,1)-INSTR(VXWORKS,'/',-1,2)-1) AS ARCH"
TABLE
=
"IOC_LASTBOOTED"
while
true
do
...
...
@@ -61,6 +63,7 @@ do
INSTR(VXWORKS,'/',-1,1)-INSTR(VXWORKS,'/',-1,2)-1) AS ARCH"
;;
f
*
)
SEL
=
"
$SEL
,VXWORKS AS FILENAME"
;;
a
*
)
OPTION
=
-dtbSEViA
${
OPTION
:1
}
;;
L
*
)
TABLE
=
"IOC_BOOTLOG"
;;
""
)
break
;;
*
)
echo
"Unknown option -
${
OPTION
:0:1
}
. Try: --help"
exit
1
;;
...
...
@@ -93,7 +96,7 @@ COLUMN VXWORKS FORMAT A7;
COLUMN ARCH FORMAT A15;
SELECT
${
HSEL
}
${
SEL
:-
$DEFAULTSEL
}
FROM SSRM.
IOC_LASTBOOTED
FROM SSRM.
${
TABLE
}
WHERE SYSTEM LIKE '%
$1
%' OR
BOOTPC LIKE '%
$1
%' OR
SLSBASE LIKE '%
$1
%' OR
...
...
@@ -107,7 +110,7 @@ ORDER BY 1;
EXIT
EOF
# $Name: $
# $Id: bootinfo,v 1.1
2
200
5/10/25 10:00:52 luedeke
Exp $
# $Id: bootinfo,v 1.1
3
200
6/03/30 14:13:37 zimoch
Exp $
# $Source: /cvs/G/DRV/misc/App/scripts/bootinfo,v $
# $Revision: 1.1
2
$
# $Revision: 1.1
3
$
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment