init script fix for debian systems

Hi, this pull request fixes init script looping due because of lack of `let` command in `dash` (which /bin/sh refers to)