On Sunday 11 August 2013 03:04 PM, Eddy Petrișor wrote: > --- laptop_mode.sid 2013-08-11 12:30:23.000000000 +0300 > +++ laptop_mode 2013-08-11 12:28:10.000000000 +0300 > @@ -234,7 +234,7 @@ > test -d /etc/laptop-mode/conf.d/board-specific && > CONF_DIR="$CONF_DIR /etc/laptop-mode/conf.d/board-specific" > > for PER_DIR in $CONF_DIR; do > - for CONF in $PER_DIR/*; do > + for CONF in $(ls $PER_DIR/* 2>/dev/null); do > if [ -r "$CONF" ] ; then > . "$CONF" > #Handle individual module debug settings
This is already fixes in my upstream branch. It will be part of the next release. BTW, won't just *.conf solve the problem. The current fix in my branch is: diff --git a/usr/sbin/laptop_mode b/usr/sbin/laptop_mode index 71beab2..070f1de 100755 --- a/usr/sbin/laptop_mode +++ b/usr/sbin/laptop_mode @@ -234,7 +234,7 @@ lmt_load_config () test -d /etc/laptop-mode/conf.d/board-specific && CONF_DIR="$CONF_DIR /etc/laptop-mode/conf.d/board-specific for PER_DIR in $CONF_DIR; do - for CONF in $PER_DIR/*; do + for CONF in $PER_DIR/*.conf; do if [ -r "$CONF" ] ; then . "$CONF" #Handle individual module debug settings -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention."
signature.asc
Description: OpenPGP digital signature