| verzia 1.3, 2003/07/13 13:04:41 |
verzia 1.4, 2003/07/14 10:52:37 |
|
|
| # 16/03/2003 - created |
# 16/03/2003 - created |
| # 20/03/2003 - do not copy /dev/ if already exists |
# 20/03/2003 - do not copy /dev/ if already exists |
| # 01/07/2003 - configurable $TFTPBOOT_ROOT and $TFTPBOOT_FIXED variables |
# 01/07/2003 - configurable $TFTPBOOT_ROOT and $TFTPBOOT_FIXED variables |
| |
# 14/07/2003 - created $DISABLED_SERVICES variable |
| # |
# |
| |
|
| # $Platon: scripts/shell/sysadmin/diskless-makeroot.sh,v 1.2 2003/07/01 22:19:36 nepto Exp $ |
# $Platon: scripts/shell/sysadmin/diskless-makeroot.sh,v 1.3 2003/07/13 13:04:41 nepto Exp $ |
| |
|
| TFTPBOOT_ROOT="/var/tftpboot/"; |
TFTPBOOT_ROOT="/var/tftpboot/"; |
| TFTPBOOT_FIXED="/etc/tftpboot/"; |
TFTPBOOT_FIXED="/etc/tftpboot/"; |
| |
|
| |
# This is a subset of services, that should be disabled on diskless client. |
| |
# Do not hesitate to update this list. |
| |
# -- Nepto [10/3/2003] |
| |
DISABLED_SERVICES="kudzu mserver mysql msql wwwoffled smb httpd dhcpd iptables xinetd routed postfix xfs nfs nfslock cups lpd"; |
| |
|
| # |
# |
| # Input parameter check |
# Input parameter check |
| # |
# |
| Riadok 127 rm -r -f "$TFTPBOOT_ROOT/$ip/etc/my-ppp/ |
|
| Riadok 133 rm -r -f "$TFTPBOOT_ROOT/$ip/etc/my-ppp/ |
|
| # Removing services starting. |
# Removing services starting. |
| # |
# |
| |
|
| # Do not hesitate to update this list of services. |
|
| # This is only a subset of services, that should be disabled on diskless client. |
|
| # -- Nepto [10/3/2003] |
|
| |
|
| print_message 'Removing services starting.'; |
print_message 'Removing services starting.'; |
| for service in kudzu mserver mysql msql wwwoffled smb httpd dhcpd iptables xinetd routed postfix xfs nfs nfslock cups lpd; do |
for service in "$DISABLED_SERVICES"; do |
| echo " $TFTPBOOT_ROOT/$ip/etc/rc.d/init.d/$service"; |
echo " $TFTPBOOT_ROOT/$ip/etc/rc.d/init.d/$service"; |
| rm -f "$TFTPBOOT_ROOT/$ip/etc/rc.d/init.d/$service" || exit; |
rm -f "$TFTPBOOT_ROOT/$ip/etc/rc.d/init.d/$service" || exit; |
| done |
done |