summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-07-23 17:42:14 +0100
committerRoss Burton <ross.burton@intel.com>2018-07-23 18:05:37 +0100
commit22e0692898c3e7ceedc8eb5ff4ec8e0b9c340b2d (patch)
tree93e40a806a3d7f3f6968922454c1fda8fe245626
parentf6913cae59a52823dc2c143b526d5080e61dd64d (diff)
downloadupdate-rc.d-22e0692898c3e7ceedc8eb5ff4ec8e0b9c340b2d.tar.gz
update-rc.d-22e0692898c3e7ceedc8eb5ff4ec8e0b9c340b2d.tar.bz2
update-rc.d-22e0692898c3e7ceedc8eb5ff4ec8e0b9c340b2d.zip
Fix to handle priority numbers correctly.0.8
Previously, if the priority number is '08' or '09', for example, the script cannot handle them correctly as these numbers are treated as octal numbers.
-rw-r--r--update-rc.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-rc.d b/update-rc.d
index 976b4cb..e07cf85 100644
--- a/update-rc.d
+++ b/update-rc.d
@@ -232,7 +232,7 @@ case $1 in
exit 1
fi
shift
- NN=`printf %02d $1`
+ NN=`printf %02d $(expr $1 + 0)`
shift
while [ "x$1" != "x." ]; do
if [ $# -eq 0 ]; then