Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
eaa25b5d
Commit
eaa25b5d
authored
Oct 07, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loginhsh: add -v (verbose) param
parent
cafc5cad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
loginhsh
bin/loginhsh
+5
-2
No files found.
bin/loginhsh
View file @
eaa25b5d
...
@@ -32,6 +32,7 @@ phelp()
...
@@ -32,6 +32,7 @@ phelp()
echog
" -i - initialize hasher"
echog
" -i - initialize hasher"
echog
" -c - cleanup hasher"
echog
" -c - cleanup hasher"
echog
" -o - log in as root user"
echog
" -o - log in as root user"
echog
" -v - verbose"
echog
" -t - use test hasher dir (different to build hasher)"
echog
" -t - use test hasher dir (different to build hasher)"
echog
" -M?? - branch name"
echog
" -M?? - branch name"
echog
"Extra options:"
echog
"Extra options:"
...
@@ -39,7 +40,7 @@ phelp()
...
@@ -39,7 +40,7 @@ phelp()
echog
" -r - remote login to hasher"
echog
" -r - remote login to hasher"
}
}
while
getopts
:chitoa opt
;
do
while
getopts
:chitoa
v
opt
;
do
case
$opt
in
case
$opt
in
h
)
phelp
;
exit
0
;;
h
)
phelp
;
exit
0
;;
t
)
TESTMODE
=
1
;;
t
)
TESTMODE
=
1
;;
...
@@ -47,6 +48,7 @@ while getopts :chitoa opt; do
...
@@ -47,6 +48,7 @@ while getopts :chitoa opt; do
c
)
CLEANUP
=
1
;;
c
)
CLEANUP
=
1
;;
a
)
AUTOMODE
=
1
;;
a
)
AUTOMODE
=
1
;;
r
)
REMOTE
=
1
;;
r
)
REMOTE
=
1
;;
v
)
VERBOSE
=
"-v"
;;
o
)
ROOTER
=
"--rooter"
;;
o
)
ROOTER
=
"--rooter"
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
...
@@ -92,7 +94,8 @@ fi
...
@@ -92,7 +94,8 @@ fi
if
[
!
-d
$HASHERDIR
]
||
[
"
$INITIALIZE
"
=
"1"
]
||
[
-n
"
$AUTOMODE
"
]
;
then
if
[
!
-d
$HASHERDIR
]
||
[
"
$INITIALIZE
"
=
"1"
]
||
[
-n
"
$AUTOMODE
"
]
;
then
echog
"Initialize
$HASHERDIR
..."
echog
"Initialize
$HASHERDIR
..."
mkdir
-p
$HASHERDIR
&&
$HSH
$HASHERARG
--initroot-only
$HASHERDIR
||
fatal
"mkdir"
mkdir
-p
$HASHERDIR
||
fatal
"mkdir"
$HSH
$VERBOSE
$HASHERARG
--initroot-only
$HASHERDIR
||
fatal
"Cannot initialize hasher"
fi
fi
SHELLHASHERARG
=
"--mountpoints=/proc"
SHELLHASHERARG
=
"--mountpoints=/proc"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment