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
90b8b73d
Commit
90b8b73d
authored
May 26, 2017
by
Igor Pecovnik
Browse files
Removing installer from menu if not started from SD card
parent
629745ad
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config
View file @
90b8b73d
...
@@ -205,7 +205,7 @@ while true; do
...
@@ -205,7 +205,7 @@ while true; do
#
#
# here we add new items to menu. with condition when needed
# here we add new items to menu. with condition when needed
LIST+
=(
"Timezone"
"Change your timezone"
)
LIST+
=(
"Timezone"
"Change your timezone"
)
[[
-f
/usr/sbin/nand-sata-install
]]
&&
LIST+
=(
"Install"
"Install to SATA, eMMC, NAND or USB"
)
[[
$(
sed
-n
's/^DEVNAME=//p'
/sys/dev/block/
$(
mountpoint
-d
/
)
/uevent
)
==
mmcblk
*
&&
-f
/usr/sbin/nand-sata-install
]]
&&
LIST+
=(
"Install"
"Install to SATA, eMMC, NAND or USB"
)
if
[[
-n
$(
service hostapd status |
grep
-w
active |
grep
-w
running
)
]]
;
then
if
[[
-n
$(
service hostapd status |
grep
-w
active |
grep
-w
running
)
]]
;
then
[[
-n
$(
nmcli
-f
DEVICE,TYPE device status |
grep
wifi
)
]]
&&
LIST+
=(
"Hotspot"
"Manage WiFi access point"
)
[[
-n
$(
nmcli
-f
DEVICE,TYPE device status |
grep
wifi
)
]]
&&
LIST+
=(
"Hotspot"
"Manage WiFi access point"
)
else
else
...
...
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