#!/bin/sh
echo "?????????????"
# !/bin/sh
#
# GWB 22Feb2008
# this is /mnt/home/usr/bin/gwbresetmenudefault
# Usage:
# this routine can be invoked with Ctrl Alt 1, 2, 3, or 4
# or open a console and type booto p301, da6ok, da6, or win
# booto is a link to this routine
#
echo "gwbresetmenudefault ( booto ) entry $1 $?"
#
# sync
#
case $1 in
# help
--help )
head -8 /mnt/home/usr/bin/gwbresetmenudefault
;;
# switch to Puppy Linux 3.01
1 | p301 )
echo "default=0"
rm /mnt/home/menu.lst
cp /mnt/home/menp301.lst /mnt/home/menu.lst
wmreboot
;;
# switch to Dingo Alpha 6 OK PL 3.96 OK
2 | da6ok )
echo "default=1"
rm /mnt/home/menu.lst
cp /mnt/home/menda6ok.lst /mnt/home/menu.lst
wmreboot
;;
# switch to Dingo Alpha 6 PL 3.96
3 | da6 )
echo "default=2"
rm /mnt/home/menu.lst
cp /mnt/home/menda6.lst /mnt/home/menu.lst
wmreboot
;;
# switch boot.ini to boot Windows
4 | win )
echo "switching boot.ini"
cd /mnt/home/
rm /mnt/home/boot.ini
cp /mnt/home/bootw.ini /mnt/home/boot.ini
# enable the read, then open a console,
# type booto win, read any error messages
# then Enter to continue or Ctrl c to quit
# read ch1
wmreboot
;;
# unrecognized entries end up here
* )
echo "no action"
;;
esac