Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
74786eaf
Commit
74786eaf
authored
Apr 06, 2017
by
Igor Pecovnik
Browse files
Add switching to nightly builds
parent
992391b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
74786eaf
...
@@ -60,6 +60,7 @@ LIST=()
...
@@ -60,6 +60,7 @@ LIST=()
[[
-f
/usr/bin/h3disp
&&
"
$LINUXFAMILY
"
=
"sun8i"
&&
"
$BRANCH
"
=
"default"
&&
-n
$(
bin2fex </boot/script.bin 2>/dev/null |
grep
-w
"hdmi_used = 1"
)
]]
&&
LIST+
=(
"Display"
"set the display resolution"
)
[[
-f
/usr/bin/h3disp
&&
"
$LINUXFAMILY
"
=
"sun8i"
&&
"
$BRANCH
"
=
"default"
&&
-n
$(
bin2fex </boot/script.bin 2>/dev/null |
grep
-w
"hdmi_used = 1"
)
]]
&&
LIST+
=(
"Display"
"set the display resolution"
)
[[
-n
$(
ls
-1
/sys/class/net/ |
grep
-vE
"eth|lo|enp"
)
]]
&&
LIST+
=(
"Wireless"
"Connect to your router"
)
[[
-n
$(
ls
-1
/sys/class/net/ |
grep
-vE
"eth|lo|enp"
)
]]
&&
LIST+
=(
"Wireless"
"Connect to your router"
)
[[
-n
$(
grep
-w
apt /etc/apt/sources.list.d/armbian.list
)
]]
&&
LIST+
=(
"Nightly"
"Switch to daily builds"
)
LIST+
=(
"Hotspot"
"Creates wireless Access Point"
)
LIST+
=(
"Hotspot"
"Creates wireless Access Point"
)
LIST+
=(
"Network"
"Edit network settings"
)
LIST+
=(
"Network"
"Edit network settings"
)
[[
-f
/boot/armbianEnv.txt
]]
&&
LIST+
=(
"Booting"
"Edit boot environment"
)
[[
-f
/boot/armbianEnv.txt
]]
&&
LIST+
=(
"Booting"
"Edit boot environment"
)
...
@@ -218,6 +219,11 @@ while true; do
...
@@ -218,6 +219,11 @@ while true; do
[[
$?
=
0
]]
&&
mv
/boot/armbianEnv.txt.out /boot/armbianEnv.txt
[[
$?
=
0
]]
&&
mv
/boot/armbianEnv.txt.out /boot/armbianEnv.txt
;;
;;
"Nightly"
)
sed
-i
's/apt.armbian.com/beta.armbian.com/'
/etc/apt/sources.list.d/armbian.list
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get upgrade
;;
"Install"
)
"Install"
)
nand-sata-install
nand-sata-install
;;
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment