blob: 587728b756760650469e2c45a4f47b019210116b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
echo
echo "Trinux will save configuration information to the /tux directory"
echo "on a DOS formatted floppy or to C:\trinux\tux\ if you booted "
echo "from a fixed disk using loadlin"
if [ -f /etc/proc/boot ]
then
BOOT=`cat /etc/proc/boot`
else
BOOT="/dev/fd0"
fi
echo
echo "Boot device: $BOOT"
if [ "$BOOT" = "/dev/fd0" ]
then
echo -n "Please enter your boot/config floppy, then hit return: "
read blah
else
PREFIX="/trinux"
fi
if mount -t vfat $BOOT /boot
then
echo "Backing up old configuration"
cd /boot${PREFIX}
rm -r tux.bak 2> /dev/null
mv tux tux.bak
cp -a /etc/tux .
echo "Unmounting $BOOT"
cd /; umount /boot
else
echo "Unable to mount boot device!"
fi
|