]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
move hwprofiles enable/disable option to sysconfig/system
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 23:01:09 +0000 (23:01 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 23:01:09 +0000 (23:01 +0000)
old config location still supported (overrides if present)

svn-id: @12684

rc.d/rc.sysinit
sysconfig/hwprof
sysconfig/system

index cba87c9d7cf79eb609adccaa0cdc0ddba2913e5a..3343cd6610d0c3b98c27a67f1a9891279bf20369 100755 (executable)
@@ -382,7 +382,7 @@ if ! is_yes "$VSERVER"; then
        fi
 
        # Choose Hardware profile
-       if [ -f /etc/sysconfig/hwprof ]; then
+       if ! is_no "$HWPROFILES" && [ -f /etc/sysconfig/hwprof ]; then
                . /etc/sysconfig/hwprof
                if is_yes "${HWPROFILES}" && [ -x /sbin/hwprofile -a -d /etc/sysconfig/hwprofiles/data ]; then
                        mount -n / -o rw,remount
index 80ebedb58c9a9daa12842b2e74e7cbbe6c1acbec..b16b8dd82a3f0ace4b91aa2c32cb568ae5b0217d 100644 (file)
@@ -1,7 +1,4 @@
 # Hardware Profiles configuration
 
-# Enable HWPROFILES support?
-HWPROFILES=no
-
 # Ask for profile if not found
 ASKFORPROFILE=no
index 8007140a39b0f870ef0a17e167f3f4839690e9ef..79ad2cd46a32e0a4e2c0cc44687d6a780330dd37 100644 (file)
@@ -129,6 +129,9 @@ VSERVER_ISOLATION_NET=detect
 # 'yes' behaves as 'detect'
 SELINUX=detect
 
+# Enable HWPROFILES support?
+HWPROFILES=no
+
 # Enable syslogging for rc-scripts
 RC_LOGGING=yes
 
This page took 0.225439 seconds and 4 git commands to generate.