Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F104095683
D40726.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1015 B
Referenced Files
None
Subscribers
None
D40726.diff
View Options
diff --git a/usr.sbin/zzz/zzz.sh b/usr.sbin/zzz/zzz.sh
--- a/usr.sbin/zzz/zzz.sh
+++ b/usr.sbin/zzz/zzz.sh
@@ -18,18 +18,18 @@
# Check for ACPI support
if sysctl $ACPI_SUSPEND_STATE >/dev/null 2>&1; then
# Get configured suspend state
- SUSPEND_STATE=`sysctl -n $ACPI_SUSPEND_STATE `
+ SUSPEND_STATE=$(sysctl -n $ACPI_SUSPEND_STATE)
# Get list of supported suspend states
- SUPPORTED_STATES=`sysctl -n $ACPI_SUPPORTED_STATES `
+ SUPPORTED_STATES=$(sysctl -n $ACPI_SUPPORTED_STATES)
# Check if the configured suspend state is supported by the system
- if echo $SUPPORTED_STATES | grep $SUSPEND_STATE >/dev/null; then
+ if echo "$SUPPORTED_STATES" | grep "$SUSPEND_STATE" >/dev/null; then
# execute ACPI style suspend command
- exec acpiconf -s $SUSPEND_STATE
+ exec acpiconf -s "$SUSPEND_STATE"
else
echo -n "Requested suspend state $SUSPEND_STATE "
- echo -n "is not supported. "
+ echo -n "is not supported."
echo "Supported states: $SUPPORTED_STATES"
fi
# Check for APM support
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 4, 12:11 PM (6 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15007901
Default Alt Text
D40726.diff (1015 B)
Attached To
Mode
D40726: Add quotes to zzz.sh and replace legacy backticks with $()
Attached
Detach File
Event Timeline
Log In to Comment