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 [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "shellinabox-plugin">
|
<!ENTITY name "shellinabox-plugin">
|
||||||
<!ENTITY author "dmacias72">
|
<!ENTITY author "dmacias72">
|
||||||
<!ENTITY version "2016.02.11">
|
<!ENTITY version "2016.02.11a">
|
||||||
<!ENTITY launch "Settings/Shellinabox">
|
<!ENTITY launch "Settings/Shellinabox">
|
||||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||||
|
@ -20,6 +20,8 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<CHANGES>
|
<CHANGES>
|
||||||
|
###2016.02.11a
|
||||||
|
- fix screenfetch error if emhttp/var.ini were not ready
|
||||||
###2016.02.11
|
###2016.02.11
|
||||||
- fix: chmod error
|
- fix: chmod error
|
||||||
- fix: shutdown not saving
|
- 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>
|
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/shellinabox-plugin.png</Icon>
|
||||||
<Date>2016-02-11</Date>
|
<Date>2016-02-11</Date>
|
||||||
<Changes>
|
<Changes>
|
||||||
|
###2016.02.11a
|
||||||
|
- fix screenfetch error if emhttp/var.ini were not ready
|
||||||
###2016.02.11
|
###2016.02.11
|
||||||
- fix: chmod error
|
- fix: chmod error
|
||||||
- fix: shutdown not saving
|
- fix: shutdown not saving
|
||||||
|
|
|
@ -4129,8 +4129,17 @@ infoDisplay () {
|
||||||
# Info Variable Setting #
|
# Info Variable Setting #
|
||||||
#########################
|
#########################
|
||||||
if [[ "$distro" == "unRAID" ]]; then
|
if [[ "$distro" == "unRAID" ]]; then
|
||||||
source /var/local/emhttp/var.ini
|
if [ -e /var/local/emhttp/var.ini ]; then
|
||||||
fi
|
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
|
if [[ "${distro}" == "Android" ]]; then
|
||||||
myhostname=$(echo -e "${labelcolor}${hostname}"); out_array=( "${out_array[@]}" "$myhostname" )
|
myhostname=$(echo -e "${labelcolor}${hostname}"); out_array=( "${out_array[@]}" "$myhostname" )
|
||||||
mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $distro_ver"); out_array=( "${out_array[@]}" "$mydistro" )
|
mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $distro_ver"); out_array=( "${out_array[@]}" "$mydistro" )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user