summaryrefslogtreecommitdiffstats
path: root/net/net-tools/PREPARE
blob: f0efff2c68ad79445f0b7cf1d9f9c88b82cb9eca (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 ! provider_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 the provider of 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