1 2 3 4 5 6
#!/bin/sh # Record the previous version PRIOR_VERSION=`uname -r | cut -d'.' -f1` echo $PRIOR_VERSION > /tmp/pre_upgrade_version