slitaz-tools rev 155
netbox: add UDHCPD_OPTIONS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 20 22:50:24 2008 +0000 (2008-04-20) |
parents | 6d2bfc63ab4f |
children | efbcba5c4e8d |
files | tinyutils/netbox |
line diff
1.1 --- a/tinyutils/netbox Sun Apr 20 22:32:26 2008 +0000 1.2 +++ b/tinyutils/netbox Sun Apr 20 22:50:24 2008 +0000 1.3 @@ -378,6 +378,24 @@ 1.4 tmp='<frame Dhcpd> 1.5 <hbox> 1.6 <text use-markup="true"> 1.7 + <label>"<b>UDHCPD_OPTIONS</b>"</label> 1.8 + </text> 1.9 + <entry editable="false">' 1.10 +[ -n "$UDHCPD_OPTS" ] && tmp="$tmp<default>$UDHCPD_OPTS</default>" 1.11 +tmp2=' 1.12 + <variable>UDHCPD_OPTS</variable> 1.13 + </entry> 1.14 + <button> 1.15 + <input file icon="help"></input> 1.16 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 60x14 -title "udhcpd help" -e "udhcpd --help ; echo -e \"----\nENTER to continue...\" && read close"</action> 1.17 + </button> 1.18 + <button> 1.19 + <input file icon="accessories-text-editor"></input> 1.20 + <action type="lauch">leafpad /etc/daemons.conf</action> 1.21 + </button> 1.22 + </hbox> 1.23 + <hbox> 1.24 + <text use-markup="true"> 1.25 <label>"<b>Configuration :</b>"</label> 1.26 </text> 1.27 <entry editable="false"> 1.28 @@ -406,7 +424,7 @@ 1.29 </hbox> 1.30 </frame> 1.31 ' 1.32 -[ -x /usr/sbin/udhcpd ] && NET_BOX="${NET_BOX}${tmp}" 1.33 +[ -x /usr/sbin/udhcpd ] && NET_BOX="${NET_BOX}$tmp$tmp2" 1.34 tmp='<frame Pxelinux> 1.35 <hbox> 1.36 <text wrap="true">