Fix exit code. If there's no change needed, this is a success, not

a failure.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5755 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2009-07-20 09:50:51 +00:00
1 parent 4cf83be1b1
commit 963c843c6a
2 files changed
+4 -3

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ SVN-HEAD
Clean up the discovery of i2c adapters
Report unsupported Access Bus adapters
Add detection for TI's TMP421, TMP422 and TMP423 chips
sysconfig-lm_sensors-convert: Fix exit code
3.1.1 (2009-06-21)
isadump: Use geteuid instead of getuid so that setuid bit works
+3 -3
View File
@@ -9,11 +9,11 @@
# that package maintainers can include it in their post-install script.
CONFIG=/etc/sysconfig/lm_sensors
test -r "$CONFIG" || exit
test -r "$CONFIG" || exit 0
unset ${!MODULE_*} $HWMON_MODULES
. "$CONFIG"
test -n "$HWMON_MODULES" && exit
test -n "$HWMON_MODULES" && exit 0
for i in ${!MODULE_*} ; do
eval module=\$$i
@@ -23,7 +23,7 @@ for i in ${!MODULE_*} ; do
HWMON_MODULES="$HWMON_MODULES $module"
fi
done
test -z "$HWMON_MODULES" && exit
test -z "$HWMON_MODULES" && exit 0
echo >> "$CONFIG"
echo "# New configuration format generated by sysconfig-lm_sensors-convert" >> "$CONFIG"