Compare commits

...

2 Commits

Author SHA1 Message Date
root
582077c7ec changes 2023-04-18 15:00:05 +02:00
root
a4b09dc07c Auf Branch main
Ihr Branch ist auf demselben Stand wie 'origin/main'.

 Zum Commit vorgemerkte Änderungen:
	geändert:       conf.d/service_10_main.conf.sh
	geändert:       conf.d/service_30_nfs.conf.sh
	geändert:       conf.d/service_40_smbd.conf.sh
	geändert:       settings.sh

 Unversionierte Dateien:
	resrc.d/default-minimal.txt
2023-04-18 14:59:12 +02:00
5 changed files with 38 additions and 5 deletions

View File

@ -22,6 +22,7 @@ case $1 in
# copy Files some files:
cp -a /usr/lib/syslinux/modules/bios ${D_TFTP}/
cp -a ${D_RESRC}/default-minimal.txt ${D_TFTP}/pxelinux.cfg/default
# Link needed Files from installed Debian Packages to the TFTP-Root:
ln /usr/lib/PXELINUX/pxelinux.0 ${D_TFTP}/

View File

@ -7,7 +7,7 @@
# Service configuration
#
S_ENABLED=YES
S_ENABLED=no
S_NAME="nfs-kernel-server"
S_PACKAGES="nfs-kernel-server nfs-common"

View File

@ -7,7 +7,7 @@
# Service configuration
#
S_ENABLED=yes
S_ENABLED=no
S_NAME="smbd"
S_PACKAGES="samba"

View File

@ -0,0 +1,25 @@
rootprompt 0
path bios
default bios/vesamenu.c32
#TIMEOUT 300
MENU TITLE Minimal PXE Bootmenue
LABEL disk0
localboot 0
MENU LABEL Boot from first Harddisk
LABEL -
MENU LABEL --------------------------
LABEL ipxe
MENU LABEL * iPXE Shell
KERNEL ipxe dhcp && shell
LABEL demo
MENU LABEL * iPXE Demonstration
KERNEL ipxe dhcp && chain http://boot.ipxe.org/demo/boot.php
LABEL fdos
MENU LABEL * iPXE FreeDOS over HTTP and Internet
KERNEL ipxe dhcp && sanboot http://boot.ipxe.org/freedos/fdfullcd.iso

View File

@ -9,6 +9,7 @@ D_TFTP=/srv/tftp
# Full path of this project:
D_ROOTDIR=/root/pxe-bootserver
D_RESRC=${D_ROOTDIR}/resrc.d
# the ip and FQDN for this server
HOST_IP=192.168.75.3
@ -26,7 +27,7 @@ fservice (){
# $4 is a list of packages
if [ "$1" = "yes" ] || [ "$1" = "YES" ]; then
echo "touching $3 :"
echo "$3 is enabled:"
case $2 in
# INIT
# Install needed Debian Packages:
@ -36,22 +37,28 @@ if [ "$1" = "yes" ] || [ "$1" = "YES" ]; then
;;
start)
if ! [ "$3" = "none" ]; then
echo " starting $3 ..."
systemctl start $3
fi
;;
stop)
if ! [ "$3" = "none" ]; then
echo " stopping $3 ..."
systemctl stop $3
fi
;;
restart)
if ! [ "$3" = "none" ]; then
echo " restarting $3 ..."
systemctl restart $3
fi
;;
esac
else
echo "$3 is disabled. nothing to do..."
echo "$3 is disabled. "
if ! [ "$3" = "none" ]; then
systemctl stop $3
fi
fi