Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: powerd not really turning on powersaving mode



Yeah, either backquotes, or $(...)


On Thu, 21 Aug 2008, Pierre Pronchery wrote:

                        Hello all,

I just read the /etc/powerd/scripts/acadapter, and I think the following lines:

18         # Disable power saving mode on all network interfaces
19         for intf in /sbin/ifconfig -l; do
20                 /sbin/ifconfig $intf -powersave >/dev/null 2>&1
21         done

and

48         # Enable power saving mode on all network interfaces
49         for intf in /sbin/ifconfig -l; do
50                 /sbin/ifconfig $intf powersave >/dev/null 2>&1
51         done

should actually use backquotes around "ifconfig -l" to be useful.

Nice addition though.

Cheers,
--
khorben


!DSPAM:48adf0a61772023370489!




----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul%whooppee.com@localhost   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette%juniper.net@localhost |
----------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index