#!/bin/bash

# Part 1 of the two scripts for manufacturing
# Determine if system is in manufacturing.
# If so, Execute the following manufacturing-specific activities:
# - swap the menu.lst file for the menu_dos.lst file;
# - additional activities [TBD].
# Reboot the system is taken care of in the second script.

if [ -e /var/nn/mfgonly/mfg.mfg ]; then
    if [ -e /var/nn/mfgonly/menu_dos.lst ]; then
        echo `date +%c` "Replacing menu.lst to allow system to reboot to DOS for Mfg." >> /var/log/mfgonly.log
        cp -a /var/nn/mfgonly/menu_dos.lst /nn/images/kernels/boot/grub/menu.lst
    fi
fi
    
