add code to set patch

 Per: pull request https://github.com/opentechinsti...tute/luci-commotion/pull/198