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
c2202a5a
Commit
c2202a5a
authored
Apr 17, 2018
by
Igor Pecovnik
Browse files
Cosmetics at overlayroot enabling, disable kernel freezing for non-armbian
parent
47aaa1e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
debian-config-jobs
100644 → 100755
View file @
c2202a5a
...
...
@@ -1183,7 +1183,7 @@ function jobs ()
debconf-apt-progress
--
apt-get
-o
Dpkg::Options::
=
"--force-confnew"
-y
--no-install-recommends
install
overlayroot
echo
'#!/bin/bash'
>
/etc/update-motd.d/97-overlayroot
echo
'if [ -n "$(mount | grep -w tmpfs-root)" ]; then \
echo -e "
\n
[\e[0m \e[1mremember: your system is in virtual read only mode\e[0m ]";fi'
>>
/etc/update-motd.d/97-overlayroot
echo -e "[\e[0m \e[1mremember: your system is in virtual read only mode\e[0m ]
\n
";fi'
>>
/etc/update-motd.d/97-overlayroot
chmod
+x /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
...
...
debian-config-submenu
View file @
c2202a5a
...
...
@@ -29,10 +29,12 @@ while true; do
[[
$(
sed
-n
's/^DEVNAME=//p'
/sys/dev/block/
$(
mountpoint
-d
/
)
/uevent 2> /dev/null
)
==
mmcblk
*
&&
-f
/usr/sbin/nand-sata-install
]]
\
&&
LIST+
=(
"Install"
"Install to SATA, eMMC, NAND or USB"
)
if
[[
-n
"
${
mark
}
"
]]
;
then
LIST+
=(
"Defreeze"
"Enable kernel upgrades"
)
else
LIST+
=(
"Freeze"
"Disable kernel upgrades"
)
if
[[
-f
/etc/armbian-release
]]
;
then
if
[[
-n
"
${
mark
}
"
]]
;
then
LIST+
=(
"Defreeze"
"Enable kernel upgrades"
)
else
LIST+
=(
"Freeze"
"Disable kernel upgrades"
)
fi
fi
if
[[
-z
$(
apt-mark showhold |
grep
-w
"
$BOARD
"
)
]]
;
then
[[
-f
/etc/apt/sources.list.d/armbian.list
]]
&&
[[
-n
$(
grep
-w
apt /etc/apt/sources.list.d/armbian.list
)
]]
\
...
...
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