diff --git a/plugins/shellinabox-plugin.plg b/plugins/shellinabox-plugin.plg index 14cefb1e..1f1fb79d 100755 --- a/plugins/shellinabox-plugin.plg +++ b/plugins/shellinabox-plugin.plg @@ -3,7 +3,7 @@ - + @@ -20,6 +20,8 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a --> +###2016.02.11a +- fix screenfetch error if emhttp/var.ini were not ready ###2016.02.11 - fix: chmod error - fix: shutdown not saving diff --git a/plugins/shellinabox-plugin.xml b/plugins/shellinabox-plugin.xml index 0d8eed10..cad32e54 100644 --- a/plugins/shellinabox-plugin.xml +++ b/plugins/shellinabox-plugin.xml @@ -13,6 +13,8 @@ Shell In A Box implements a web server that can export arbitrary command line to https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/shellinabox-plugin.png 2016-02-11 +###2016.02.11a +- fix screenfetch error if emhttp/var.ini were not ready ###2016.02.11 - fix: chmod error - fix: shutdown not saving diff --git a/source/shellinabox-plugin/usr/sbin/screenfetch b/source/shellinabox-plugin/usr/sbin/screenfetch index 12ade5da..a71673d7 100755 --- a/source/shellinabox-plugin/usr/sbin/screenfetch +++ b/source/shellinabox-plugin/usr/sbin/screenfetch @@ -4129,8 +4129,17 @@ infoDisplay () { # Info Variable Setting # ######################### if [[ "$distro" == "unRAID" ]]; then - source /var/local/emhttp/var.ini - fi + if [ -e /var/local/emhttp/var.ini ]; then + source /var/local/emhttp/var.ini + else + fsState="n/a" + mdNumDisks="n/a" + mdResync="0" + mdResyncPos="0" + cacheNumDevices="n/a" + fsNumUnmountable="n/a" + fi + fi if [[ "${distro}" == "Android" ]]; then myhostname=$(echo -e "${labelcolor}${hostname}"); out_array=( "${out_array[@]}" "$myhostname" ) mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $distro_ver"); out_array=( "${out_array[@]}" "$mydistro" )