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
a4cc3714
Commit
a4cc3714
authored
Jul 04, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loginhsh: add -x option for login with X support
parent
cf28c34e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
loginhsh
bin/loginhsh
+6
-4
No files found.
bin/loginhsh
View file @
a4cc3714
...
...
@@ -35,6 +35,7 @@ phelp()
echog
" -c cleanup hasher"
echog
" -o log in as root user"
echog
" -v verbose"
echog
" -x allow run X program (set DISPLAY and use xauth)"
echog
" -t use test hasher dir (different to build hasher)"
echog
" -M?? branch name"
echo
...
...
@@ -43,7 +44,7 @@ phelp()
echog
" -r remote login to hasher"
}
while
getopts
:chitoavb: opt
;
do
while
getopts
:chitoavb:
x
opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
t
)
TESTMODE
=
1
;;
...
...
@@ -52,6 +53,7 @@ while getopts :chitoavb: opt; do
a
)
AUTOMODE
=
1
;;
b
)
BINARYREPONAME
=
$OPTARG
;;
r
)
REMOTE
=
1
;;
x
)
ALLOWX
=
1
;;
v
)
VERBOSE
=
"-v"
;;
o
)
ROOTER
=
"--rooter"
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
...
...
@@ -115,12 +117,12 @@ UTILPKG="mc"
# GNOME program needs dbus-tools-gui
if
rpm
--requires
-p
$LISTNAMES
2>/dev/null |
grep
-q
dbus
;
then
echo
"dbus using detecte
e
d, add dbus-tools-gui"
echo
"dbus using detected, add dbus-tools-gui"
UTILPKG
=
"
$UTILPKG
dbus-tools-gui"
fi
if
[
-n
"
$
TESTMODE$AUTOMODE
"
]
;
then
UTILPKG
=
"
$UTILPKG
XFree86-
xauth fonts-ttf-liberation"
if
[
-n
"
$
AUTOMODE
"
]
||
[
-n
"
$ALLOWX
"
]
;
then
UTILPKG
=
"
$UTILPKG
xauth fonts-ttf-liberation"
else
UTILPKG
=
"
$UTILPKG
etersoft-build-utils"
fi
...
...
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