Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Fix to handle priority numbers correctly. |
| 4 | Previously, if the priority number is '08' or '09', for example, |
| 5 | the script cannot handle them correctly as these numbers are treated |
| 6 | as octal numbers. |
| 7 | |
| 8 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 9 | --- |
| 10 | update-rc.d | 2 +- |
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | |
| 13 | diff --git a/update-rc.d b/update-rc.d |
| 14 | index ec50d15..c70b859 100644 |
| 15 | --- a/update-rc.d |
| 16 | +++ b/update-rc.d |
| 17 | @@ -205,7 +205,7 @@ case $1 in |
| 18 | exit 1 |
| 19 | fi |
| 20 | shift |
| 21 | - NN=`printf %02d $1` |
| 22 | + NN=`printf %02d $(expr $1 + 0)` |
| 23 | shift |
| 24 | while [ "x$1" != "x." ]; do |
| 25 | if [ $# -eq 0 ]; then |
| 26 | -- |
| 27 | 1.7.9.5 |
| 28 | |