Skip to content

Commit

Permalink
Fix dialog orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
ezdiy committed Dec 8, 2019
1 parent 512be7c commit 41d1ea2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions svc/bin/applysettings.app
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/mnt/secure/su /bin/sh
iv2sh SetActiveTask `pidof settings.app` 0
export PATH=/mnt/secure/bin:$PATH
dialog 1 "" "Do you really want restart the device?" "Yes" "No"
if [ $? != 1 ]; then
Expand Down
3 changes: 2 additions & 1 deletion svc/bin/sysstat.app
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/mnt/secure/su /bin/sh
iv2sh SetActiveTask `pidof settings.app` 0
ip=$(/sbin/ifconfig eth0 |grep 'inet addr' | sed -e 's/.*addr:\([^ ]*\).*/\1/g' | head -1)
if [ "$ip" == "" ]; then
ip="not connected"
Expand All @@ -13,7 +14,7 @@ check dropbear SSHD
check lighttpd HTTPD
check smbd SMBD
check proftpd FTPD
dialog 1 "" "Version: $(cat /mnt/secure/.pkgver)"
dialog 1 "" "Version: $(cat /mnt/secure/.pkgver)
IP: $ip
UP: $svcs
Load: $(cut -d ' ' -f 1-3 < /proc/loadavg)
Expand Down

0 comments on commit 41d1ea2

Please sign in to comment.