The JunOS installation script

I don’t like installing manually… So I’ve written a script for it. This is an autoamtic installation script for the JunOS olive for which you need to be using a version of FreeBSD < 8. FreeBSD 8 is not supported.

#!/bin/sh
FILE='jinstall-10.4R1.9-domestic-signed.tgz'
HASH=649006003c9773859882411246405a39
UNTAR='tar zxf'
TAR='tar zcf'
WORK=tmp

work (){
    if [ -d $WORK ]; then
        rm -fr $WORK
    fi
    mkdir -p $WORK
    cd $WORK
}

dwork (){
    cd ../;rm -fr $WORK
}
if [