[Lunar-commits] r23017 - lunar-tools/trunk/lnet

striker striker at lunar-linux.org
Mon Jan 22 17:16:17 CET 2007


Author: striker
Date: 2007-01-22 17:16:17 +0100 (Mon, 22 Jan 2007)
New Revision: 23017

Modified:
   lunar-tools/trunk/lnet/lnet
Log:
Adding message to inform user that dhcp module is not installed.


Modified: lunar-tools/trunk/lnet/lnet
===================================================================
--- lunar-tools/trunk/lnet/lnet	2007-01-22 06:32:08 UTC (rev 23016)
+++ lunar-tools/trunk/lnet/lnet	2007-01-22 16:16:17 UTC (rev 23017)
@@ -323,6 +323,7 @@
 WIRELESS_MODE_PROMPT="What mode should be used (Managed or Ad-Hoc)?"
  WIRELESS_ESS_PROMPT="What is the ESSID or network name (return for auto)?"
         ROUTE_PROMPT="If needed add route declarations. Leave blank if you don't need any. The path to 'route' itself will be added automatcally and you also don't need to specify 'route' itself. 'add' entries will be replace with 'del' entries and undone in the reverse order when the interface is shutdown."
+ DHCP_MODULE_MESSAGE="The DHCP client you have chosen is not installed. Before your device will work, you will need to install the following module: "
 
 if [ -z $1 ]; then
      while [ -z $DEVICE ]; do
@@ -388,6 +389,17 @@
                              "dhclient"  ""                  \
                              "udhcpc"    "" `                &&
 
+       case $DHCP_CLIENT in
+          dhclient)
+             if ! module_installed dhcp; then
+                msgbox "Warning" "$DHCP_MODULE_MESSAGE dhcp" 10
+             fi ;;
+          udhcpc)
+             if ! module_installed udhcp; then
+                msgbox "Warning" "$DHCP_MODULE_MESSAGE udhcp" 10
+             fi ;;
+       esac
+
        DHCP_OPTIONS=`inputbox  "$DHCP_OPTIONS_PROMPT" "$DHCP_OPTIONS"`  
        ADDRESS=dhcp
   else



More information about the Lunar-commits mailing list