should probably be `grep -q SmartOS /etc/release`