fix screenfetch error if emhttp/var.ini were not ready
This commit is contained in:
parent
1828f9eba2
commit
9589e693cd
|
@ -3,7 +3,7 @@
|
|||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "shellinabox-plugin">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2016.02.11">
|
||||
<!ENTITY version "2016.02.11a">
|
||||
<!ENTITY launch "Settings/Shellinabox">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
|
@ -20,6 +20,8 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a
|
|||
-->
|
||||
|
||||
<CHANGES>
|
||||
###2016.02.11a
|
||||
- fix screenfetch error if emhttp/var.ini were not ready
|
||||
###2016.02.11
|
||||
- fix: chmod error
|
||||
- fix: shutdown not saving
|
||||
|
|
|
@ -13,6 +13,8 @@ Shell In A Box implements a web server that can export arbitrary command line to
|
|||
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/shellinabox-plugin.png</Icon>
|
||||
<Date>2016-02-11</Date>
|
||||
<Changes>
|
||||
###2016.02.11a
|
||||
- fix screenfetch error if emhttp/var.ini were not ready
|
||||
###2016.02.11
|
||||
- fix: chmod error
|
||||
- fix: shutdown not saving
|
||||
|
|
|
@ -4129,7 +4129,16 @@ infoDisplay () {
|
|||
# Info Variable Setting #
|
||||
#########################
|
||||
if [[ "$distro" == "unRAID" ]]; then
|
||||
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" )
|
||||
|
|
Loading…
Reference in New Issue
Block a user