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
6bed3cf6
Commit
6bed3cf6
authored
Apr 11, 2017
by
Igor Pecovnik
Browse files
Asking for reboot, when upgrade to nightly.
parent
fb587bdf
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config
View file @
6bed3cf6
...
...
@@ -143,7 +143,8 @@ while true; do
[[
$?
=
0
]]
&&
overlayroot-chroot
sed
-i
"s/^overlayroot=.*/overlayroot=
\"\"
/"
/etc/overlayroot.conf
&&
reboot
else
apt-get
-qq
-y
--no-install-recommends
install
overlayroot
echo
'echo -e "[\e[0m \e[1mremember: root is in virtual read only mode\e[0m ]"'
>
/etc/update-motd.d/97-overlayroot
echo
'#!/bin/bash'
>
/etc/update-motd.d/97-overlayroot
echo
'echo -e "[\e[0m \e[1mremember: root is in virtual read only mode\e[0m ]"'
>>
/etc/update-motd.d/97-overlayroot
dialog
--title
"Root overlay"
--backtitle
"
$BACKTITLE
"
--yes-label
"Reboot"
--no-label
"Cancel"
--yesno
"
\n
Enable virtual read-only root and reboot."
7 45
[[
$?
=
0
]]
&&
sed
-i
"s/^overlayroot=.*/overlayroot=
\"
tmpfs
\"
/"
/etc/overlayroot.conf
&&
reboot
fi
...
...
@@ -276,6 +277,9 @@ while true; do
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
-y
upgrade
dialog
--title
"Switching to nightly"
--backtitle
"
$BACKTITLE
"
--yes-label
"Reboot"
--no-label
"Cancel"
--yesno
\
"
\n
Reboot to apply new settings?"
7 34
if
[[
$?
=
0
]]
;
then
reboot
;
fi
;;
"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