blob: a170d4abdc2383c6814a707059a8409600d8a7b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
persistent_add NETTOOLSHASTIME &&
persistent_add NETTOOLSNEW &&
if ! spell_ok ifupdown ; then
NETTOOLSNEW="y" &&
# Have to cheat to get a config option over into ifupdown
touch ${INSTALL_ROOT}/tmp/net-toolsNewInstall &&
# end cheat
unset NETTOOLSHASTIME &&
message "${PROBLEM_COLOR}This is a significant change to the way networking works" &&
message "You will have to build an /etc/network/interfaces file." &&
message "Its the same system that debian uses, so it's well documented." &&
message "Installing the spell won't break your current network connections." &&
message "But if you reboot, no network connections will come up." &&
message "Because of this, you must say y to the following question, or this" &&
message "spell will not install." &&
message "Right after casting this spell, you need to cast ifupdown.${DEFAULT_COLOR}" &&
config_query NETTOOLSHASTIME "Do you have time to configure your nifty new networking?" n &&
if [[ "$NETTOOLSHASTIME" != "y" ]]; then
rm ${INSTALL_ROOT}/tmp/net-toolsNewInstall &&
return 1
fi
else
NETTOOLSHASTIME="y" &&
NETTOOLSNEW="n"
fi
|