summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/save_boot_device
blob: 72f97d2ee52fbc48b3759f2e8c284fbf908bf32d (plain)
1
2
3
4
5
if [ "$os_version" == "sles11" ]; then
    nvram --print-config=boot-device > /root/boot-device.bak
elif [ "$os_version" == "fedora17" ]; then
    nvram --print-config=boot-device > /tmp/boot-device.bak
fi