[ci] testing rc.ubuntu with Ubuntu 17.04 (works!), but installing lsb_release seems useful for containers.
#!/bin/sh
-# should support 12.04 to 16.10
+# should support 12.04 to 17.04
apt-get update
+lsb_release -r || apt-get -y install lsb-release
+
UBUNTU_VER=$(lsb_release -r | sed -n 's/.*\([0-9][0-9]\.[0-9][0-9]\).*/\1/p')
LESS_THAN_1304=$(awk 'BEGIN{print '$UBUNTU_VER' < 13.04 ? 1 : 0}')
LESS_THAN_1404=$(awk 'BEGIN{print '$UBUNTU_VER' < 14.04 ? 1 : 0}')
