Summary: | app-laptop/laptop-mode-tools-1.62-r1: /usr/sbin/laptop_mode: line 1022: [: : integer expression expected | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | Current packages | Assignee: | Alon Bar-Lev (RETIRED) <alonbl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo-lmt |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Martin Mokrejš
2013-03-13 22:02:30 UTC
And the line numbers: 1021 1022 if [ "$INIT" -eq 0 ] ; then 1023 log "MSG" "Laptop mode " 1024 fi 1025 1030 if [ -f /var/run/laptop-mode-tools/state ] ; then 1031 read WAS_ACTIVE WAS_ON_AC WAS_ACTIVATE_WITH_POSSIBLE_DATA_LOSS WAS_STATE < /var/run/laptop-mode-tools/state 1032 if [ "$WAS_STATE" != "" ] ; then 1033 if [ "$WAS_ACTIVE" -eq "$ACTIVATE" -a "$WAS_ON_AC" -eq "$ON_AC" -a "$WAS_ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -a "$WAS_STATE" = "$STATE" -a "$FORCE" -eq 0 ] ; then 1034 if [ "$WAS_ACTIVE" -eq 1 ] ; then 1035 log "MSG" "$STATE, active [unchanged]" Workaround: INIT=0 /usr/sbin/laptop_mode status (In reply to comment #2) > Workaround: > > INIT=0 /usr/sbin/laptop_mode status FORCE=0 INIT=0 /usr/sbin/laptop_mode status Fixed in laptop-mode-tools-1.62-r2 |