Файловый менеджер - Редактировать - /var/www/iplanru/data/www/intesco.ru/d59ed/dhcp3.tar
Назад
dhclient-exit-hooks.d/sendmail 0000666 00000002537 15077014671 0012412 0 ustar 00 #!/bin/sh # # This script is called when a dhcp event occurs. # # Here is where we'll start/stop sendmail if needed. # # Written By Richard Nelson <cowboy@debian.org> # # NOTE: The following lines (without the #) must be in /etc/mail/sendmail.mc: # include(`/etc/mail/dialup.m4')dnl # include(`/etc/mail/provider.m4')dnl # # NOTE: The dhcp DNS name is used as the peer name in /etc/mail/peers. # # No need to continue if we're called with an unsupported option case "$reason" in EXPIRE|FAIL|RELEASE|STOP) #down... and TIMEOUT too ??? ;; BOUND|RENEW|REBIND|REBOOT|TIMEOUT) #up... why TIMEOUT here ??? ;; *) return; ;; esac; # Bring in some script functions to handle dynamic configuration . /usr/share/sendmail/dynamic; # Note the interface that just changed update_interface "$interface" "$reason"; # If the domain name has changed, update the provider information if [ "$new_domain_name" != "$old_domain_name" ]; then update_provider "$new_domain_name"; fi; # If the ip address has changed, update the host information if [ "$new_ip_address" != "$oldnew_ip_address" ]; then update_host "$new_ip_address"; fi; # If anything has been changed, update sendmail.cf and reload # Actually, we'll delay the reload because we'll be hit in a moment # to handle the change by /etc/network/if-up.d/sendmail update_sendmail "dhcp" Delayed; return; dhclient-enter-hooks.d/samba 0000666 00000003253 15077014671 0012041 0 ustar 00 #!/bin/sh SAMBA_DHCP_CONF=/etc/samba/dhcp.conf netbios_setup() { # No need to continue if we're called with an unsupported option case $reason in BOUND|RENEW|REBIND|REBOOT|EXPIRE|FAIL|RELEASE|STOP) ;; *) return ;; esac umask 022 local other_servers="" local serverlist="" # the destination file won't exist yet on the first run after # installing samba if [ -e $SAMBA_DHCP_CONF ] then # don't continue if no settings have changed if [ "$new_netbios_name_servers" = "$old_netbios_name_servers" ] \ && [ "$new_netbios_scope" = "$old_netbios_scope" ] \ && [ -n "$new_netbios_name_servers" ] then return fi # reparse our own file other_servers=`sed -n -e"s/[[:space:]]$interface:[^[:space:]]*//g; \ s/^[[:space:]]*wins server[[:space:]]*=[[:space:]]*//pi" \ $SAMBA_DHCP_CONF` serverlist="$other_servers" fi for server in $new_netbios_name_servers do serverlist="$serverlist $interface:$server" done echo -n > ${SAMBA_DHCP_CONF}.new # If we're updating on failure/expire, AND there are no WINS # servers for other interfaces, leave the file empty. if [ -z "$other_servers" ] then if [ "$reason" = FAIL ] || [ "$reason" = EXPIRE ] then mv ${SAMBA_DHCP_CONF}.new $SAMBA_DHCP_CONF return fi fi if [ -n "$serverlist" ] then echo " wins server =$serverlist" >> ${SAMBA_DHCP_CONF}.new fi if [ -n "$new_netbios_scope" ] then echo " netbios scope = $new_netbios_scope" >> ${SAMBA_DHCP_CONF}.new fi mv ${SAMBA_DHCP_CONF}.new $SAMBA_DHCP_CONF # reload the samba server # We don't necessarily have the samba package installed. #414841 [ -x /etc/init.d/samba ] && /usr/sbin/invoke-rc.d samba reload } netbios_setup
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка