Upgrade scripts for SmartOS