projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Releasing debian version 3.0~a26-1.
[live-boot-grml.git]
/
bin
/
live-reconfigure
diff --git
a/bin/live-reconfigure
b/bin/live-reconfigure
index
565bdea
..
16cb51d
100755
(executable)
--- a/
bin/live-reconfigure
+++ b/
bin/live-reconfigure
@@
-8,31
+8,31
@@
frontend=noninteractive
findcommandinroot ()
{
findcommandinroot ()
{
- ROOT="$
1
/"
+ ROOT="$
{1}
/"
shift
shift
- while [ "$
#
" -ge 1 ]
+ while [ "$
{#}
" -ge 1 ]
do
do
- P="$
PATH
"
+ P="$
{PATH}
"
- while [ "$
P
" ]
+ while [ "$
{P}
" ]
do
D=${P%%:*}
P=${P#*:}
do
D=${P%%:*}
P=${P#*:}
- if [ "$
D" = "$P
" ]
+ if [ "$
{D}" = "${P}
" ]
then
P=
fi
then
P=
fi
- if [ -z "$
D
" ]
+ if [ -z "$
{D}
" ]
then
D=.
fi
then
D=.
fi
- if [ -x "$
ROOT$D/$1
" ]
+ if [ -x "$
{ROOT}${D}/${1}
" ]
then
then
- echo "$
D/$1
"
+ echo "$
{D}/${1}
"
return 0
fi
done
return 0
fi
done
@@
-45,26
+45,26
@@
findcommandinroot ()
runcommandinroot ()
{
runcommandinroot ()
{
- C=$(findcommandinroot "$
1" "$2
")
- ROOT="$
1
"
+ C=$(findcommandinroot "$
{1}" "${2}
")
+ ROOT="$
{1}
"
shift
shift
shift
shift
- [ -n "$
C" ] && chroot "$ROOT" "$C" "$@
"
+ [ -n "$
{C}" ] && chroot "${ROOT}" "${C}" "${@}
"
}
}
-root="$
1
"
-package="$
2
"
+root="$
{1}
"
+package="$
{2}
"
-version=$(runcommandinroot "$
root" dpkg-query -W --showformat='${Version}' "$package
" 2>/dev/null) || version=""
+version=$(runcommandinroot "$
{root}" dpkg-query -W --showformat='${Version}' "${package}
" 2>/dev/null) || version=""
-if [ -z "$
version
" ]
+if [ -z "$
{version}
" ]
then
then
- echo >&2 "$
0: package '$package
' is not installed"
+ echo >&2 "$
{0}: package '${package}
' is not installed"
exit 0
fi
exit 0
fi
-runcommandinroot "$
root" dpkg-reconfigure -fnoninteractive --no-reload "$package
"
+runcommandinroot "$
{root}" dpkg-reconfigure -fnoninteractive --no-reload "${package}
"
exit 0
exit 0