blob: 5d567ba76634f29225b43b5dda9e93b124df6af0 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#!/bin/sh
action() { echo $1; shift; $*; }
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
echo -e "\t\t\tWelcome to \\033[1;36mMandrake\\033[0;39m Linux"
action "Remounting root filesystem in read-write mode" mount -n -o remount,rw /
ln -s /tmp/stage2/etc/* /etc 2>/dev/null
rm -f /dev ; cp -a /tmp/stage2/dev /dev
mkdir /mnt
mkdir /proc
action "Mounting proc filesystem" mount -n -t proc /proc /proc
>/etc/mtab
mount -f /
mount -f /proc
#- free up stage1 memory
umount /stage1/proc/bus/usb /stage1/proc /stage1
# Set the hostname.
action "Setting hostname rescue" hostname rescue
echo rescue > /etc/HOSTNAME
# Loads common modules ( no kerneld :( )
echo "Loading additional modules..."
load() { modprobe $* 2>/dev/null; }
load ide-mod
load ide-probe
load ide-disk
load ide-cd
load floppy
load af_packet
load isofs
load vfat
load ext3
load reiserfs
load xfs
load jfs
load loop
load sd_mod
load sr_mod
/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0
/sbin/route add 127.0.0.1 lo
grep -q noauto /proc/cmdline || drvinst SERIAL_USB
if ! grep -q expert /proc/cmdline; then
rescue-gui
fi
|