/[gentoo-x86]/autoinstaller.sh
Gentoo

Diff of /autoinstaller.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.6
37echo "Swap partition in /dev/$MYSWAPPART" 37echo "Swap partition in /dev/$MYSWAPPART"
38 38
39sed -e "s/#ROOT#/${MYROOTPART}/" -e "s/#SWAP#/${MYSWAPPART}/" ${ROOT}/etc/fstab.orig > ${ROOT}/etc/fstab 39sed -e "s/#ROOT#/${MYROOTPART}/" -e "s/#SWAP#/${MYSWAPPART}/" ${ROOT}/etc/fstab.orig > ${ROOT}/etc/fstab
40 40
41echo "Generating library links and cache..." 41echo "Generating library links and cache..."
42ldconfig -r ${ROOT} 42cp ${ROOT}/etc/env.d/00basic ${ROOT}/etc/env.d/00basic.orig
43sed -e "s/i686-pc-linux-gnu/$ARCH/" ${ROOT}/etc/env.d/00basic.orig > ${ROOT}/etc/env.d/00basic
44
45${ROOT}/usr/sbin/env-update
43 46
44case "$GMT" in 47case "$GMT" in
45 n|N|No|no) 48 n|N|No|no)
46 echo "Your BIOS clock is set to localtime" 49 echo "Your BIOS clock is set to localtime"
47 ;; 50 ;;
53esac 56esac
54 57
55 58
56echo "Keymap: $keymap" 59echo "Keymap: $keymap"
57mv ${ROOT}/etc/rc.d/config/basic ${ROOT}/etc/rc.d/config/basic.bak 60mv ${ROOT}/etc/rc.d/config/basic ${ROOT}/etc/rc.d/config/basic.bak
61sed -e "s/KEYMAP=.*/KEYMAP=\"$keymap\"/" \
62 -e "s/CONSOLEFONT=.*/CONSOLEFONT=\"$consolefont\"/" \
58sed -e "s/KEYMAP=.*/KEYMAP=\"$keymap\"/" ${ROOT}/etc/rc.d/config/basic.bak > ${ROOT}/etc/rc.d/config/basic 63 ${ROOT}/etc/rc.d/config/basic.bak > ${ROOT}/etc/rc.d/config/basic
59mv ${ROOT}/etc/rc.d/config/basic ${ROOT}/etc/rc.d/config/basic.bak 64mv ${ROOT}/etc/rc.d/config/basic ${ROOT}/etc/rc.d/config/basic.bak
65sed -e "s/TIMED=.*/TIMED=\"$timed\"/" \
60sed -e "s/TIMED=.*/TIMED=\"$timed\"/" ${ROOT}/etc/rc.d/config/basic.bak > ${ROOT}/etc/rc.d/config/basic 66 ${ROOT}/etc/rc.d/config/basic.bak > ${ROOT}/etc/rc.d/config/basic
61 67
62 68
63myzone="${ROOT}/usr/share/zoneinfo/$timezone" 69myzone="${ROOT}/usr/share/zoneinfo/$timezone"
64echo "Timezone: $timezone" 70echo "Timezone: $timezone"
65 71
66 72
67cp ${myzone##${ROOT}} ${ROOT}/etc/localtime 73cp ${myzone} ${ROOT}/etc/localtime
68 74
69echo "Hostname: $hostname" 75echo "Hostname: $hostname"
70 76
71echo "$hostname" > ${ROOT}/etc/hostname 77echo "$hostname" > ${ROOT}/etc/hostname
72echo -n "domain " > ${ROOT}/etc/resolv.conf 78echo -n "domain " > ${ROOT}/etc/resolv.conf

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20