summaryrefslogtreecommitdiffstats
path: root/client/nfsexport/scripts/ogUpdateBootCache.sh
blob: af2267a2ebe85befa37621be11c3c74bc59fae39 (plain)
1
2
3
4
5
6
7
#!/bin/bash
OGBTFTP="/opt/og2fs/tftpboot/ogclient/"
ogMountCache || exit 1
echo $OGCAC
[ -d $OGCAC/boot ] || mkdir -p $OGCAC/boot 
[ -f ${OGCAC}/boot/ogvmlinuz ] || cp ${OGBTFTP}ogvmlinuz ${OGCAC}/boot/ogvmlinuz
[ -f ${OGCAC}/boot/oginitrd.img ] || cp ${OGBTFTP}oginitrd.img ${OGCAC}/boot/oginitrd.img