saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
1
hprofile/example-profiles/boot/default
Normal file
1
hprofile/example-profiles/boot/default
Normal file
@@ -0,0 +1 @@
|
||||
dualboot
|
||||
136
hprofile/example-profiles/boot/files/etc/X11/XF86Config.dualboot
Normal file
136
hprofile/example-profiles/boot/files/etc/X11/XF86Config.dualboot
Normal file
@@ -0,0 +1,136 @@
|
||||
Section "Files"
|
||||
RgbPath "/usr/X11R6/lib/X11/rgb"
|
||||
ModulePath "/usr/X11R6/lib/modules"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
|
||||
EndSection
|
||||
|
||||
Section "ServerFlags"
|
||||
Option "AllowMouseOpenFail"
|
||||
# Option "Pixmap" "24"
|
||||
EndSection
|
||||
|
||||
Section "Module"
|
||||
Load "type1"
|
||||
Load "speedo"
|
||||
Load "extmod"
|
||||
Load "freetype"
|
||||
Load "glx"
|
||||
Load "dri"
|
||||
Load "synaptics"
|
||||
EndSection
|
||||
|
||||
Section "InputDevice"
|
||||
Driver "Keyboard"
|
||||
Identifier "Laptop Keyboard"
|
||||
Option "Protocol" "Standard"
|
||||
Option "XkbLayout" "gb"
|
||||
Option "XkbModel" "pc105"
|
||||
Option "XkbRules" "xfree86"
|
||||
EndSection
|
||||
|
||||
|
||||
Section "InputDevice"
|
||||
Driver "synaptics"
|
||||
Identifier "Trackpad"
|
||||
Option "Device" "/dev/input/event2"
|
||||
Option "Protocol" "auto-dev"
|
||||
Option "LeftEdge" "1900"
|
||||
Option "RightEdge" "5400"
|
||||
Option "TopEdge" "1900"
|
||||
# Option "BottomEdge" "4000"
|
||||
Option "BottomEdge" "5000"
|
||||
Option "FingerLow" "25"
|
||||
Option "FingerHigh" "30"
|
||||
Option "MaxTapTime" "180"
|
||||
Option "MaxTapMove" "220"
|
||||
Option "VertScrollDelta" "100"
|
||||
Option "MinSpeed" "0.02"
|
||||
Option "MaxSpeed" "0.18"
|
||||
Option "AccelFactor" "0.0010"
|
||||
Option "UpDownScrolling" "0"
|
||||
Option "SHMConfig" "on"
|
||||
EndSection
|
||||
|
||||
Section "InputDevice"
|
||||
Driver "mouse"
|
||||
Identifier "USB Mouse"
|
||||
Option "Buttons" "6"
|
||||
Option "Device" "/dev/input/mouse1"
|
||||
Option "InputFashion" "Mouse"
|
||||
Option "Name" "Autodetection"
|
||||
Option "Protocol" "ExplorerPS/2"
|
||||
Option "Vendor" "Sysp"
|
||||
Option "ZAxisMapping" "5 6"
|
||||
EndSection
|
||||
|
||||
|
||||
Section "Monitor"
|
||||
HorizSync 31-65
|
||||
Identifier "Laptop LCD Monitor"
|
||||
ModelName "1024X768@70HZ"
|
||||
VendorName "--> LCD"
|
||||
VertRefresh 58-78
|
||||
Option "DPMS"
|
||||
# UseModes "Laptop LCD Modes"
|
||||
EndSection
|
||||
|
||||
|
||||
#Section "Modes"
|
||||
# Identifier "Laptop LCD Modes"
|
||||
# Modeline "1024x768" 69.35 1024 1040 1216 1400 768 768 778 802
|
||||
# Modeline "1024x768" 79.55 1024 1040 1216 1400 768 768 778 802
|
||||
# Modeline "640x480" 27.16 640 656 720 864 480 480 490 501
|
||||
# Modeline "640x480" 31.15 640 656 720 864 480 480 490 501
|
||||
#EndSection
|
||||
|
||||
|
||||
Section "Screen"
|
||||
DefaultDepth 24
|
||||
SubSection "Display"
|
||||
Depth 16
|
||||
Modes "1024x768"
|
||||
EndSubSection
|
||||
SubSection "Display"
|
||||
Depth 24
|
||||
Modes "1024x768"
|
||||
EndSubSection
|
||||
Device "Intel 855GM"
|
||||
Identifier "Laptop LCD Screen"
|
||||
Monitor "Laptop LCD Monitor"
|
||||
EndSection
|
||||
|
||||
|
||||
Section "Device"
|
||||
BoardName "855GM"
|
||||
BusID "0:2:0"
|
||||
Driver "i810"
|
||||
Identifier "Intel 855GM"
|
||||
Screen 0
|
||||
VendorName "Intel"
|
||||
# Videoram 16384
|
||||
VideoRam 10000
|
||||
EndSection
|
||||
|
||||
|
||||
Section "ServerLayout"
|
||||
Identifier "Default Layout"
|
||||
InputDevice "Laptop keyboard" "CoreKeyboard"
|
||||
InputDevice "Trackpad" "SendCoreEvents"
|
||||
InputDevice "USB Mouse" "CorePointer"
|
||||
Option "Clone" "off"
|
||||
Option "Xinerama" "off"
|
||||
Screen "Laptop LCD Screen"
|
||||
EndSection
|
||||
|
||||
Section "DRI"
|
||||
Group "video"
|
||||
Mode 0660
|
||||
Mode 0666
|
||||
EndSection
|
||||
|
||||
118
hprofile/example-profiles/boot/files/etc/X11/XF86Config.vmware
Normal file
118
hprofile/example-profiles/boot/files/etc/X11/XF86Config.vmware
Normal file
@@ -0,0 +1,118 @@
|
||||
# VMware SVGA
|
||||
|
||||
Section "Module"
|
||||
Load "dbe" # Double buffer extension
|
||||
SubSection "extmod"
|
||||
EndSubSection
|
||||
Load "type1"
|
||||
Load "freetype"
|
||||
# Load "glx"
|
||||
EndSection
|
||||
|
||||
Section "Files"
|
||||
RgbPath "/usr/X11R6/lib/X11/rgb"
|
||||
# FontPath "/usr/X11R6/lib/X11/fonts/local/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
|
||||
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
|
||||
# ModulePath "/usr/X11R6/lib/modules"
|
||||
EndSection
|
||||
|
||||
Section "ServerFlags"
|
||||
# Option NoTrapSignals
|
||||
EndSection
|
||||
|
||||
Section "InputDevice"
|
||||
Identifier "Keyboard1"
|
||||
Driver "Keyboard"
|
||||
Option "AutoRepeat" "500 30"
|
||||
Option "XkbRules" "xfree86"
|
||||
Option "XkbModel" "pc104"
|
||||
Option "XkbLayout" "gb"
|
||||
Option "XkbCompat" ""
|
||||
EndSection
|
||||
|
||||
Section "InputDevice"
|
||||
Identifier "Mouse1"
|
||||
Driver "mouse"
|
||||
Option "Protocol" "ps/2"
|
||||
Option "Device" "/dev/mouse"
|
||||
Option "ZAxisMapping" "4 5"
|
||||
Option "A" "5"
|
||||
# Option "Emulate3Buttons"
|
||||
# Option "Emulate3Timeout" "50"
|
||||
# Option "ChordMiddle"
|
||||
EndSection
|
||||
|
||||
Section "Monitor"
|
||||
Identifier "vmware"
|
||||
VendorName "VMware, Inc"
|
||||
HorizSync 1-10000
|
||||
VertRefresh 1-10000
|
||||
|
||||
ModeLine "640x480" 100 640 700 800 900 480 500 600 700
|
||||
ModeLine "800x600" 100 800 900 1000 1100 600 700 800 900
|
||||
ModeLine "1024x768" 100 1024 1100 1200 1300 768 800 900 1000
|
||||
ModeLine "1152x864" 100 1152 1200 1300 1400 864 900 1000 1100
|
||||
ModeLine "1152x900" 100 1152 1200 1300 1400 900 1000 1100 1200
|
||||
ModeLine "1280x1024" 100 1280 1300 1400 1500 1024 1100 1200 1300
|
||||
ModeLine "1376x1032" 100 1376 1400 1500 1600 1032 1100 1200 1300
|
||||
ModeLine "1600x1200" 100 1600 1700 1800 1900 1200 1300 1400 1500
|
||||
ModeLine "2364x1773" 100 2364 2400 2500 2600 1773 1800 1900 2000
|
||||
EndSection
|
||||
|
||||
Section "Device"
|
||||
Identifier "VMware SVGA"
|
||||
Driver "vmware"
|
||||
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "Screen 1"
|
||||
Device "VMware SVGA"
|
||||
Monitor "vmware"
|
||||
|
||||
# Don't specify DefaultColorDepth unless you know what you're
|
||||
# doing. It will override the driver's preferences which can
|
||||
# cause the X server not to run if the host doesn't support the
|
||||
# depth.
|
||||
|
||||
Subsection "Display"
|
||||
# VGA mode: better left untouched
|
||||
Depth 4
|
||||
Modes "640x480"
|
||||
ViewPort 0 0
|
||||
EndSubsection
|
||||
Subsection "Display"
|
||||
Depth 8
|
||||
Modes "1024x768"
|
||||
ViewPort 0 0
|
||||
EndSubsection
|
||||
Subsection "Display"
|
||||
Depth 15
|
||||
Modes "1024x768"
|
||||
ViewPort 0 0
|
||||
EndSubsection
|
||||
Subsection "Display"
|
||||
Depth 16
|
||||
Modes "1024x768"
|
||||
ViewPort 0 0
|
||||
EndSubsection
|
||||
Subsection "Display"
|
||||
Depth 24
|
||||
Modes "1024x768"
|
||||
ViewPort 0 0
|
||||
EndSubsection
|
||||
EndSection
|
||||
|
||||
Section "ServerLayout"
|
||||
Identifier "Simple Layout"
|
||||
Screen "Screen 1"
|
||||
InputDevice "Mouse1" "CorePointer"
|
||||
InputDevice "Keyboard1" "CoreKeyboard"
|
||||
EndSection
|
||||
|
||||
34
hprofile/example-profiles/boot/files/etc/conf.d/net.bak
Normal file
34
hprofile/example-profiles/boot/files/etc/conf.d/net.bak
Normal file
@@ -0,0 +1,34 @@
|
||||
# /etc/conf.d/net:
|
||||
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
|
||||
|
||||
# Global config file for net.* rc-scripts
|
||||
|
||||
# This is basically the ifconfig argument without the ifconfig $iface
|
||||
#
|
||||
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
|
||||
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
|
||||
|
||||
# For DHCP set iface_eth? to "dhcp"
|
||||
# For passing options to dhcpcd use dhcpcd_eth?
|
||||
#
|
||||
#iface_eth0="dhcp"
|
||||
#dhcpcd_eth0="..."
|
||||
|
||||
# For adding aliases to a interface
|
||||
#
|
||||
#alias_eth0="192.168.0.3 192.168.0.4"
|
||||
|
||||
# NB: The next is only used for aliases.
|
||||
#
|
||||
# To add a custom netmask/broadcast address to created aliases,
|
||||
# uncomment and change accordingly. Leave commented to assign
|
||||
# defaults for that interface.
|
||||
#
|
||||
#broadcast_eth0="192.168.0.255 192.168.0.255"
|
||||
#netmask_eth0="255.255.255.0 255.255.255.0"
|
||||
|
||||
|
||||
# For setting the default gateway
|
||||
#
|
||||
#gateway="eth0/192.168.0.1"
|
||||
|
||||
38
hprofile/example-profiles/boot/files/etc/conf.d/net.dualboot
Normal file
38
hprofile/example-profiles/boot/files/etc/conf.d/net.dualboot
Normal file
@@ -0,0 +1,38 @@
|
||||
# /etc/conf.d/net:
|
||||
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
|
||||
|
||||
# Global config file for net.* rc-scripts
|
||||
|
||||
# This is basically the ifconfig argument without the ifconfig $iface
|
||||
#
|
||||
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
|
||||
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
|
||||
|
||||
# For DHCP set iface_eth? to "dhcp"
|
||||
# For passing options to dhcpcd use dhcpcd_eth?
|
||||
#
|
||||
iface_eth0="dhcp"
|
||||
dhcpcd_eth0="-h lacienega -t 5"
|
||||
|
||||
iface_eth1="dhcp"
|
||||
dhcpcd_eth1="-h lacienega -t 5"
|
||||
iwconfig_eth1="key 8B9CEAECD3"
|
||||
|
||||
# For adding aliases to a interface
|
||||
#
|
||||
#alias_eth0="192.168.0.3 192.168.0.4"
|
||||
|
||||
# NB: The next is only used for aliases.
|
||||
#
|
||||
# To add a custom netmask/broadcast address to created aliases,
|
||||
# uncomment and change accordingly. Leave commented to assign
|
||||
# defaults for that interface.
|
||||
#
|
||||
#broadcast_eth0="192.168.0.255 192.168.0.255"
|
||||
#netmask_eth0="255.255.255.0 255.255.255.0"
|
||||
|
||||
|
||||
# For setting the default gateway
|
||||
#
|
||||
#gateway="eth0/192.168.0.1"
|
||||
|
||||
23
hprofile/example-profiles/boot/files/etc/conf.d/net.vmware
Normal file
23
hprofile/example-profiles/boot/files/etc/conf.d/net.vmware
Normal file
@@ -0,0 +1,23 @@
|
||||
# Global config file for net.* rc-scripts
|
||||
|
||||
# This is basically the ifconfig argument without the ifconfig $iface
|
||||
#
|
||||
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
|
||||
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
|
||||
|
||||
# For DHCP set iface_eth? to "dhcp"
|
||||
# For passing options to dhcpcd use dhcpcd_eth?
|
||||
|
||||
# For adding aliases to a interface
|
||||
#
|
||||
#alias_eth0="192.168.0.3 192.168.0.4"
|
||||
|
||||
# For setting the default gateway
|
||||
#
|
||||
#gateway="192.168.0.1"
|
||||
|
||||
iface_eth0="dhcp"
|
||||
dhcpcd_eth0="-t 5 -h `hostname`"
|
||||
|
||||
iface_eth1="dhcp"
|
||||
dhcpcd_eth1="-t 5 -h `hostname`"
|
||||
@@ -0,0 +1,11 @@
|
||||
# /etc/modules.autoload.d/kernel-2.6: kernel modules to load when system boots.
|
||||
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.6,v 1.1 2003/07/16 18:13:45 azarah Exp $
|
||||
#
|
||||
# Note that this file is for 2.6 kernels.
|
||||
#
|
||||
# Add the names of modules that you'd like to load when the system
|
||||
# starts into this file, one per line. Comments begin with # and
|
||||
# are ignored. Read man modules.autoload for additional details.
|
||||
|
||||
# For example:
|
||||
# 3c59x
|
||||
@@ -0,0 +1,50 @@
|
||||
# /etc/modules.autoload.d/kernel-2.6: kernel modules to load when system boots.
|
||||
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.6,v 1.1 2003/07/16 18:13:45 azarah Exp $
|
||||
#
|
||||
# Note that this file is for 2.6 kernels.
|
||||
#
|
||||
# Add the names of modules that you'd like to load when the system
|
||||
# starts into this file, one per line. Comments begin with # and
|
||||
# are ignored. Read man modules.autoload for additional details.
|
||||
|
||||
# ACPI drivers
|
||||
ac
|
||||
asus_acpi
|
||||
battery
|
||||
button
|
||||
fan
|
||||
processor
|
||||
thermal
|
||||
|
||||
# AGP and graphics
|
||||
agpgart
|
||||
intel-agp
|
||||
i830
|
||||
|
||||
# I/O devices
|
||||
pcspkr
|
||||
psmouse
|
||||
evdev
|
||||
|
||||
# USB
|
||||
ehci-hcd
|
||||
uhci-hcd
|
||||
|
||||
# IEEE1394 (FireWire)
|
||||
ieee1394
|
||||
ohci1394
|
||||
|
||||
# PCMCIA
|
||||
pcmcia-core
|
||||
yenta-socket
|
||||
ds
|
||||
|
||||
# Parallel port
|
||||
parport
|
||||
|
||||
# Networking
|
||||
eepro100
|
||||
|
||||
# USB audio (other drivers loaded by alsa)
|
||||
sound
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# /etc/modules.autoload: kernel modules to load when system boots.
|
||||
#
|
||||
# Add the names of modules that you'd like to load when the system
|
||||
# starts into this file, one per line. Comments begin with # and
|
||||
# are ignored. Read man modules.autoload for additional details.
|
||||
|
||||
# This is the modules.conf file for the VMWare hardware profile
|
||||
|
||||
pcnet32
|
||||
pcspkr
|
||||
psmouse
|
||||
evdev
|
||||
uhci-hcd
|
||||
|
||||
39
hprofile/example-profiles/boot/files/etc/modules.d/alsa.bak
Normal file
39
hprofile/example-profiles/boot/files/etc/modules.d/alsa.bak
Normal file
@@ -0,0 +1,39 @@
|
||||
# Alsa 0.9.X kernel modules' configuration file.
|
||||
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $
|
||||
|
||||
# ALSA portion
|
||||
alias char-major-116 snd
|
||||
# OSS/Free portion
|
||||
alias char-major-14 soundcore
|
||||
|
||||
##
|
||||
## IMPORTANT:
|
||||
## You need to customise this section for your specific sound card(s)
|
||||
## and then run `update-modules' command.
|
||||
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
|
||||
##
|
||||
## ALSA portion
|
||||
## alias snd-card-0 snd-interwave
|
||||
## alias snd-card-1 snd-ens1371
|
||||
## OSS/Free portion
|
||||
## alias sound-slot-0 snd-card-0
|
||||
## alias sound-slot-1 snd-card-1
|
||||
##
|
||||
|
||||
# OSS/Free portion - card #1
|
||||
alias sound-service-0-0 snd-mixer-oss
|
||||
alias sound-service-0-1 snd-seq-oss
|
||||
alias sound-service-0-3 snd-pcm-oss
|
||||
alias sound-service-0-8 snd-seq-oss
|
||||
alias sound-service-0-12 snd-pcm-oss
|
||||
## OSS/Free portion - card #2
|
||||
## alias sound-service-1-0 snd-mixer-oss
|
||||
## alias sound-service-1-3 snd-pcm-oss
|
||||
## alias sound-service-1-12 snd-pcm-oss
|
||||
|
||||
alias /dev/mixer snd-mixer-oss
|
||||
alias /dev/dsp snd-pcm-oss
|
||||
alias /dev/midi snd-seq-oss
|
||||
|
||||
# Set this to the correct number of cards.
|
||||
options snd cards_limit=1
|
||||
@@ -0,0 +1,44 @@
|
||||
# Alsa modules and configuration
|
||||
|
||||
# Soundcore support
|
||||
alias char-major-116 snd
|
||||
alias char-major-14 soundcore
|
||||
|
||||
options snd major=116 cards_limit=1
|
||||
|
||||
# Intel i8x0 (i810)
|
||||
alias snd-card-0 snd-intel8x0
|
||||
alias sound-slot-0 snd-card-0
|
||||
alias sound-service-0-0 snd-mixer-oss
|
||||
alias sound-service-0-1 snd-seq-oss
|
||||
#alias sound-service-0-3 snd-pcm-oss
|
||||
alias sound-service-0-8 snd-seq-oss
|
||||
#alias sound-service-0-12 snd-pcm-oss
|
||||
|
||||
options snd-intel8x0 index=0 id="intel8x0" enable=1
|
||||
|
||||
# USB Audio (Edirol UA-5)
|
||||
#alias snd-card-1 snd-usb-audio
|
||||
#alias sound-slot-1 snd-card-1
|
||||
#alias sound-service-1-0 snd-mixer-oss
|
||||
#alias sound-service-1-1 snd-seq-oss
|
||||
#alias sound-service-1-3 snd-pcm-oss
|
||||
#alias sound-service-1-8 snd-seq-oss
|
||||
#alias sound-service-1-12 snd-pcm-oss
|
||||
|
||||
options snd-usb-audio index=1 id="usb-audio" enable=1
|
||||
|
||||
# OSS devices
|
||||
|
||||
#options sound-service-0-3 dsp_map="14,3"
|
||||
#options sound-service-1-3 dsp_map="14,19"
|
||||
|
||||
#options snd-pcm-oss dsp_map=3,19
|
||||
|
||||
alias /dev/mixer snd-mixer-oss
|
||||
#alias /dev/dsp snd-pcm-oss
|
||||
alias /dev/midi snd-seq-oss
|
||||
|
||||
#alias /dev/mixer1 snd-mixer-oss
|
||||
#alias /dev/dsp1 snd-pcm-oss
|
||||
#alias /dev/midi1 snd-seq-oss
|
||||
@@ -0,0 +1,34 @@
|
||||
# OSS/Free portion
|
||||
alias char-major-14 soundcore
|
||||
alias char-major-14 sb
|
||||
options sb io=0x220 irq=5 dma=1 dma16=7
|
||||
alias sound sb
|
||||
|
||||
# ALSA portion
|
||||
alias char-major-116 snd
|
||||
options snd snd_cards_limit=1 snd_major=116
|
||||
alias snd-card-0 snd-sb16
|
||||
options snd-sb16 snd_id=card1 snd_index=0 snd_isapnp=0
|
||||
|
||||
# OSS/Free portion - card #1
|
||||
alias sound-service-0-0 snd-mixer-oss
|
||||
alias sound-service-0-1 snd-seq-oss
|
||||
alias sound-service-0-3 snd-pcm-oss
|
||||
alias sound-service-0-8 snd-seq-oss
|
||||
alias sound-service-0-12 snd-pcm-oss
|
||||
|
||||
#customize the lines below to allow for demand-loading of modules
|
||||
#options snd snd_major=116 snd_cards_limit=1
|
||||
alias snd-card-0 snd-sb16
|
||||
options snd-sb16 snd_index=0
|
||||
alias sound-slot-0 snd-card-0
|
||||
|
||||
# Alsa
|
||||
# alias snd-card-0 snd-card-sb16
|
||||
#alias snd-card-1 snd-sb16
|
||||
#alias snd-card-2 snd-sb16
|
||||
#alias snd-card-3 snd-sb16
|
||||
#alias snd-card-4 snd-sb16
|
||||
#alias snd-card-5 snd-sb16
|
||||
#alias snd-card-6 snd-sb16
|
||||
#alias snd-card-7 snd-sb16
|
||||
2
hprofile/example-profiles/boot/profiles
Normal file
2
hprofile/example-profiles/boot/profiles
Normal file
@@ -0,0 +1,2 @@
|
||||
dualboot
|
||||
vmware
|
||||
31
hprofile/example-profiles/boot/ptest
Executable file
31
hprofile/example-profiles/boot/ptest
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script should echo only the name of the profile that should be used
|
||||
# It should assume it is called before any other scripts. In particular, it
|
||||
# cannot rely on environment variables set in /etc/profile or elsewhere. The
|
||||
# script may assume it will be run as root.
|
||||
|
||||
# To determine the boot profile, first check whether a profile has been
|
||||
# explicitly set on the kernel command line. If not, use VMWare's checkvm
|
||||
# tool to find out whether we are in VMWare or Dualboot mode.
|
||||
|
||||
cmdline_option="hprofile"
|
||||
cmdline="/proc/cmdline"
|
||||
|
||||
profile=""
|
||||
|
||||
# Check kernel command line (lilo append line) for an "hprofile=" option
|
||||
if grep -i "${cmdline_option}=" "${cmdline}" >/dev/null 2>&1 ; then
|
||||
profile=$(cat "${cmdline}" |
|
||||
sed "s/^.*${cmdline_option}=\([^[:space:]]*\).*$/\1/")
|
||||
else
|
||||
if test -x /usr/sbin/vmware-checkvm ; then
|
||||
if /usr/sbin/vmware-checkvm >/dev/null 2>&1 ; then
|
||||
profile="vmware"
|
||||
else
|
||||
profile="dualboot"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ${profile}
|
||||
Reference in New Issue
Block a user