diff options
author | Simon Rettberg | 2017-04-25 11:44:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-25 11:44:29 +0200 |
commit | b5f0c2f71b3a304b4537110491a39af657c42a88 (patch) | |
tree | 119f20ac7ff7a9e50d0eae4acc692e8dc737f41c /core/modules/vmchooser2 | |
parent | [vmchooser2] Support SLX_AUTOSTART_UUID (diff) | |
download | mltk-b5f0c2f71b3a304b4537110491a39af657c42a88.tar.gz mltk-b5f0c2f71b3a304b4537110491a39af657c42a88.tar.xz mltk-b5f0c2f71b3a304b4537110491a39af657c42a88.zip |
[vmchooser2] Check if /run/hwinfo exists before sourcing
Diffstat (limited to 'core/modules/vmchooser2')
-rwxr-xr-x | core/modules/vmchooser2/data/opt/openslx/bin/vmchooser | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser index 3153d6f1..5df1536e 100755 --- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser +++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser @@ -17,7 +17,7 @@ else /opt/openslx/cups/printergui --error "$ERRMSG" || notify-send "Fehler" "$ERRMSG" fi -. "/run/hwinfo" +[ -s "/run/hwinfo" ] && . "/run/hwinfo" if [ -z "$HW_MBRAM" ]; then MEM=$(grep -m1 '^MemTotal:' /proc/meminfo | awk '{print $2}') HW_MBRAM=$(( MEM / 1024 )) |