Upstream has a patch for this dated 2016. Also ran the init script through shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>