Changeset 5749 for lm-sensors/trunk/prog/pwm
- Timestamp:
- 07/03/09 21:37:22 (3 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/pwm/pwmconfig (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/pwm/pwmconfig
r5630 r5749 43 43 fi 44 44 45 if [ "`id -u`" != "0" ] 46 then 47 echo "You need to be root to run this script." 48 exit 1 49 fi 50 45 51 echo "# pwmconfig revision $REVISION ($REVDATE)" 46 52 echo 'This program will search your sensors for pulse width modulation (pwm)' … … 259 265 fi 260 266 else 261 NOTROOT=1267 echo "Can't write to $i, skipping." 262 268 fi 263 269 done … … 300 306 echo 'You may also need to increase the fan divisors.' 301 307 echo 'See doc/fan-divisors for more information.' 302 exit 1303 fi304 305 if [ "$NOTROOT" = "1" ]306 then307 echo 'As you are not root, we cannot write the PWM settings.'308 echo 'Please run as root to continue.'309 308 exit 1 310 309 fi
