rearanged Ulimit calls in init template

On Ubuntu Linaro setting hard limit before softlimit gives following
error:

`$ ulimit -Hn 10032`
`-bash: ulimit: open files: cannot modify limit: Invalid argument`

Setting softlimit first resolves the issue.
If anyone can shine some light as to why, I would be most grateful