Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta v6.31.0 #3621

Merged
merged 151 commits into from
Jun 28, 2020
Merged
Changes from 1 commit
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
5e8a44f
META | DietPi-Survey_report: Add v6.30 and v6.31 support
MichaIng May 10, 2020
5bf266e
v6.31
MichaIng May 10, 2020
57ef2a9
v6.31
MichaIng May 10, 2020
7fb8b09
v6.31
MichaIng May 11, 2020
e5fc3bb
v6.31
MichaIng May 11, 2020
9633e71
v6.31
MichaIng May 11, 2020
d3231a2
v6.31
MichaIng May 11, 2020
66039a2
v6.31
MichaIng May 11, 2020
16ec16e
v6.31
MichaIng May 11, 2020
20a9d33
v6.31
MichaIng May 11, 2020
b793f20
v6.31
MichaIng May 11, 2020
6ad6f8a
v6.31
MichaIng May 11, 2020
e5db997
v6.31
MichaIng May 11, 2020
3ce5678
v6.31
MichaIng May 11, 2020
b1f44ac
v6.31
MichaIng May 11, 2020
957a933
v6.31
MichaIng May 11, 2020
a2bfe60
v6.31
MichaIng May 11, 2020
3640909
v6.31
MichaIng May 11, 2020
848784d
v6.31
MichaIng May 11, 2020
1d541ee
v6.31
MichaIng May 11, 2020
338e689
v6.31
MichaIng May 11, 2020
c202885
v6.31
MichaIng May 11, 2020
2eefa96
v6.31
MichaIng May 11, 2020
dc062f0
v6.31
MichaIng May 11, 2020
ea0e202
META | Add CodeFactor to DietPi source section and bash to 3rd party …
MichaIng May 11, 2020
e8a5148
v6.31
MichaIng May 11, 2020
51089c8
v6.31
MichaIng May 11, 2020
d02d7e4
v6.31
MichaIng May 12, 2020
89ae778
v6.31 (#3471)
CedArctic May 13, 2020
8aa7af2
v6.31 (#3531)
MichaIng May 13, 2020
16a1e9f
v6.31
MichaIng May 14, 2020
30db40a
v6.31
MichaIng May 14, 2020
d89c43c
v6.31
MichaIng May 14, 2020
795ac9c
v6.31
MichaIng May 14, 2020
f6f34c0
v6.31
MichaIng May 14, 2020
96b11b0
v6.31 (#3536)
MichaIng May 14, 2020
27ab738
v6.31
MichaIng May 15, 2020
25a2978
v6.31
MichaIng May 15, 2020
0dce3dd
v6.31
MichaIng May 15, 2020
d54eaee
v6.31
MichaIng May 15, 2020
f0f4983
v6.31
MichaIng May 15, 2020
ba45d24
v6.31
MichaIng May 15, 2020
aa033a5
v6.31
MichaIng May 17, 2020
16324ca
v6.31
MichaIng May 17, 2020
510de23
v6.31
MichaIng May 17, 2020
6aa59bb
v6.31
MichaIng May 17, 2020
1c2437f
v6.31
MichaIng May 17, 2020
5996c9d
v6.31 (#3545)
MichaIng May 17, 2020
bff5112
v6.31
MichaIng May 18, 2020
0b4a4d4
v6.31
MichaIng May 18, 2020
95497ce
v6.31
MichaIng May 18, 2020
edcce06
v6.31
MichaIng May 18, 2020
10eabd9
v6.31
MichaIng May 18, 2020
c39e0e0
v6.31
MichaIng May 18, 2020
e9ae410
v6.31
MichaIng May 18, 2020
6d6e3d3
v6.31 (#3546)
MichaIng May 19, 2020
99caec8
v6.31
MichaIng May 20, 2020
b0c23fb
v6.31
MichaIng May 20, 2020
5e8144b
v6.31
MichaIng May 21, 2020
6cd00ba
v6.31
MichaIng May 21, 2020
4ee75d8
v6.31
MichaIng May 24, 2020
16d105e
v6.31
MichaIng May 25, 2020
7a4350f
v6.31
MichaIng May 25, 2020
274434d
v6.31 (#3565)
MichaIng May 26, 2020
6106bd9
v6.31
MichaIng May 27, 2020
525d168
v6.31
MichaIng May 27, 2020
b2be77c
v6.31
MichaIng May 28, 2020
8c07e28
v6.31
MichaIng May 28, 2020
2c95ce9
v6.31
MichaIng May 31, 2020
ae27afc
v6.31
MichaIng May 31, 2020
44d1e5b
v6.31
MichaIng May 31, 2020
e3297f8
v6.31
MichaIng May 31, 2020
b7998cf
v6.31
MichaIng May 31, 2020
6b07d8c
v6.31
MichaIng May 31, 2020
d51514a
v6.31
MichaIng May 31, 2020
caec92e
v6.31
MichaIng May 31, 2020
e6c504d
v6.31
MichaIng May 31, 2020
e16e82d
v6.31
MichaIng May 31, 2020
02896ef
v6.31
MichaIng Jun 1, 2020
d9daf32
v6.31
MichaIng Jun 3, 2020
7c4284b
v6.31
MichaIng Jun 3, 2020
98a43e5
v6.31
MichaIng Jun 3, 2020
2b8ab91
v6.31
MichaIng Jun 3, 2020
46fca0a
v6,31
MichaIng Jun 3, 2020
5f348ce
v6.31
MichaIng Jun 4, 2020
0f556d3
v6.31
MichaIng Jun 4, 2020
b6b15d5
v6.31
MichaIng Jun 5, 2020
92b24a0
v6.31
MichaIng Jun 5, 2020
689e152
v6.31
MichaIng Jun 7, 2020
35fadc4
v6.31
MichaIng Jun 8, 2020
998c564
v6.31
MichaIng Jun 8, 2020
6a0d80e
v6.31
MichaIng Jun 8, 2020
fe170d5
v6.31
MichaIng Jun 8, 2020
f68580a
v6.31
MichaIng Jun 8, 2020
e962936
v6.31
MichaIng Jun 9, 2020
a9d2ea3
v6.31
MichaIng Jun 14, 2020
4efb301
v6.31
MichaIng Jun 14, 2020
40ad8d3
v6.31
MichaIng Jun 14, 2020
4224ad6
v6.31
MichaIng Jun 14, 2020
7b3633e
v6.31
MichaIng Jun 14, 2020
d56c027
v6.31
MichaIng Jun 14, 2020
8c33bba
v6.31
MichaIng Jun 14, 2020
aeb8b5e
v6.31
MichaIng Jun 14, 2020
be14aff
v6.31
MichaIng Jun 16, 2020
60d5296
v6.31
MichaIng Jun 16, 2020
81753f4
v6.31
MichaIng Jun 16, 2020
926cdf0
v6.31
MichaIng Jun 16, 2020
3969369
v6.31
MichaIng Jun 16, 2020
a8626ad
v6.31
MichaIng Jun 16, 2020
590ee87
v6.31
MichaIng Jun 16, 2020
8cc5ae3
v6.31
MichaIng Jun 16, 2020
b64e9d6
v6.31
MichaIng Jun 17, 2020
21e93ba
v6.31
MichaIng Jun 17, 2020
8ab237f
v6.31
MichaIng Jun 17, 2020
8c0279c
v6.31 (#3605)
MichaIng Jun 17, 2020
13f88e7
v6.31
MichaIng Jun 18, 2020
95b8e7e
v6.31
MichaIng Jun 19, 2020
3b7712d
v6.31
MichaIng Jun 19, 2020
f22831b
v6.31
MichaIng Jun 20, 2020
b105a4e
v6.31
MichaIng Jun 20, 2020
a1367a0
v6.31
MichaIng Jun 20, 2020
824917b
v6.31 (#3617)
MichaIng Jun 23, 2020
772936d
v6.31
MichaIng Jun 24, 2020
3f4cc7b
v6.31
MichaIng Jun 24, 2020
4924679
v6.31
MichaIng Jun 24, 2020
4e10fbb
v6.31
MichaIng Jun 24, 2020
66f937a
v6.31
MichaIng Jun 24, 2020
dd45e90
v6.31
MichaIng Jun 24, 2020
a1033d3
v6.31
MichaIng Jun 25, 2020
1a3dcac
v6.31
MichaIng Jun 25, 2020
adf1409
v6.31
MichaIng Jun 25, 2020
dfbc502
v6.31
MichaIng Jun 25, 2020
3d3dcfd
v6.31
MichaIng Jun 25, 2020
49f960a
v6.31
MichaIng Jun 25, 2020
bc21cfb
v6.31
MichaIng Jun 25, 2020
59b2ccf
v6.31
MichaIng Jun 25, 2020
938e537
v6.31
MichaIng Jun 25, 2020
22d929b
v6.31
MichaIng Jun 25, 2020
ca8ec0e
v6.31 (#3620)
MichaIng Jun 25, 2020
2039bcf
v6.31
MichaIng Jun 26, 2020
5aa2cac
v6.31
MichaIng Jun 26, 2020
62bbaad
v6.31
MichaIng Jun 27, 2020
f96ad09
v6.31
MichaIng Jun 27, 2020
c8d20a1
v6.31
MichaIng Jun 27, 2020
e09fc03
v6.31
MichaIng Jun 28, 2020
c4a1dc3
v6.31
MichaIng Jun 28, 2020
a688920
v6.31
MichaIng Jun 28, 2020
7f5c40c
v6.31
MichaIng Jun 28, 2020
d0b33bc
v6.31
MichaIng Jun 28, 2020
01dafdd
v6.31
MichaIng Jun 28, 2020
e1c88c3
v6.31
MichaIng Jun 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
v6.31
+ DietPi-Globals | Minor code enhancements
MichaIng authored May 11, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 36409091db33e4cfafef3ebce8b7a104d4876952
13 changes: 6 additions & 7 deletions dietpi/func/dietpi-globals
Original file line number Diff line number Diff line change
@@ -445,7 +445,7 @@ $(ps f -eo pid,user,tty,cmd | grep -i '[d]ietpi')"; then
#-----------------------------------------------------------------------------------
# DietPi scripts, moved from /etc/bash.bashrc
# - sudo wrapper that ensures DietPi-Globals with G_* commands are loaded
G_SUDO(){ local input=$@; sudo bash -c ". /boot/dietpi/func/dietpi-globals && $input"; }
G_SUDO(){ local input=$*; sudo bash -c ". /boot/dietpi/func/dietpi-globals && $input"; }
# - sudo alias that allows running other aliases with "sudo": https://github.com/MichaIng/DietPi/issues/424
alias sudo='sudo '

@@ -1116,7 +1116,7 @@ $log_content" || break # Exit error handler menu loop on cancel

# Obtain IP
local ip
if [[ ! $@ ]]; then
if [[ ! $* ]]; then

ip=$(sed -n '/^[[:blank:]]*CONFIG_CHECK_CONNECTION_IP=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)
[[ $ip ]] || ip='9.9.9.9'
@@ -1166,7 +1166,7 @@ $log_content" || break # Exit error handler menu loop on cancel

# Obtain IP
local domain
if [[ ! $@ ]]; then
if [[ ! $* ]]; then

domain=$(sed -n '/^[[:blank:]]*CONFIG_CHECK_DNS_DOMAIN=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)
[[ $domain ]] || domain='dns9.quad9.net'
@@ -1713,8 +1713,7 @@ $log_content" || break # Exit error handler menu loop on cancel

if (( ! $G_PROMPT_BACKUP_DISABLED )); then

G_WHIP_YESNO 'Would you like to create (or update) a "DietPi-Backup" of the system, before proceeding?\n\n"DietPi-Backup" creates a system restore point, which can be recovered if unexpected issues occur.\n\nFor more information on "DietPi-Backup", please use the link below:\n - https://dietpi.com/phpbb/viewtopic.php?p=255#p255'
if (( $? == 0 )); then
if G_WHIP_YESNO 'Would you like to create (or update) a "DietPi-Backup" of the system, before proceeding?\n\n"DietPi-Backup" creates a system restore point, which can be recovered if unexpected issues occur.\n\nFor more information on "DietPi-Backup", please use the link below:\n - https://dietpi.com/phpbb/viewtopic.php?p=255#p255'; then

/boot/dietpi/dietpi-backup 1
local exit_code=$?
@@ -1788,7 +1787,7 @@ $log_content" || break # Exit error handler menu loop on cancel

[[ $G_THREAD_COUNT =~ ^[0-9]+$ ]] || G_THREAD_COUNT=-1
((G_THREAD_COUNT++))
G_THREAD_COMMAND[$G_THREAD_COUNT]=$@
G_THREAD_COMMAND[$G_THREAD_COUNT]=$*

echo -1337 > /tmp/.G_THREAD_EXITCODE_$G_THREAD_COUNT
{ { G_INTERACTIVE=0 ${G_THREAD_COMMAND[$G_THREAD_COUNT]} &> /tmp/.G_THREAD_COMMAND_$G_THREAD_COUNT; echo $? > /tmp/.G_THREAD_EXITCODE_$G_THREAD_COUNT; } & disown; } &> /dev/null
@@ -1798,7 +1797,7 @@ $log_content" || break # Exit error handler menu loop on cancel
# Run in blocking mode
else

local command=$@
local command=$*
G_DIETPI-NOTIFY 2 "G_THREADING disabled, running command in blocking mode | $command"
$command