Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
63198c22
Commit
63198c22
authored
Jul 01, 2013
by
Dubiousjim
Committed by
Natanael Copa
Jul 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-conf: accept long options
parent
bc9e98b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
15 deletions
+25
-15
update-conf.in
update-conf.in
+25
-15
No files found.
update-conf.in
View file @
63198c22
...
...
@@ -10,14 +10,16 @@ init_tmpdir TMPD
LBUCACHE
=
"
$TMPD
/lbucache"
usage
()
{
echo
"
$PROGRAM
$VERSION
Usage:
$PROGAM
[-aihl]
cat
>
&2
<<
__EOF__
$PROGRAM
$VERSION
Usage:
$PROGRAM
[-a|--all] [-i|--initd] [-l|--list] [-h|--help]
Options:
-a, --all Select all updated files
-i, --initd Use all new init.d scripts
-l, --list List updated files
-h, --help Show this help
-a Select all updated files.
-h Show this help.
-i Use all new init.d scripts.
-l List updated files.
"
__EOF__
}
...
...
@@ -31,15 +33,23 @@ is_initd() {
echo
"
$1
"
|
grep
etc/init.d/
>
/dev/null
}
while
getopts
"alih"
opt
;
do
case
"
$opt
"
in
a
)
aflag
=
"-a"
;;
i
)
iflag
=
"-i"
;;
l
)
lflag
=
"-l"
;;
h|
*
)
usage
;;
esac
args
=
`
getopt
-o
ailh
--long
all,initd,list,help
-n
"
$PROGRAM
"
--
"
$@
"
`
if
[
$?
-ne
0
]
;
then
usage
exit
2
fi
eval set
--
"
$args
"
while
true
;
do
case
$1
in
-a
|
--all
)
aflag
=
"-a"
;;
-i
|
--initd
)
iflag
=
"-i"
;;
-l
|
--list
)
lflag
=
"-l"
;;
-h
|
--help
)
usage
;
exit
;;
--
)
shift
;
break
;;
*
)
exit
1
;;
# getopt error
esac
shift
done
shift
`
expr
$OPTIND
- 1
`
for
apknew
in
$(
find
"
$ROOT
/etc"
-name
'*.apk-new'
)
;
do
p
=
"
${
apknew
%.apk-new
}
"
...
...
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