Compare commits
No commits in common. "582077c7ecec0bf2d8235c44739106e0121898ec" and "ce4f185331353274367f4307a43b87c48133a5e5" have entirely different histories.
582077c7ec
...
ce4f185331
@ -22,7 +22,6 @@ case $1 in
|
|||||||
|
|
||||||
# copy Files some files:
|
# copy Files some files:
|
||||||
cp -a /usr/lib/syslinux/modules/bios ${D_TFTP}/
|
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:
|
# Link needed Files from installed Debian Packages to the TFTP-Root:
|
||||||
ln /usr/lib/PXELINUX/pxelinux.0 ${D_TFTP}/
|
ln /usr/lib/PXELINUX/pxelinux.0 ${D_TFTP}/
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# Service configuration
|
# Service configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
S_ENABLED=no
|
S_ENABLED=YES
|
||||||
S_NAME="nfs-kernel-server"
|
S_NAME="nfs-kernel-server"
|
||||||
S_PACKAGES="nfs-kernel-server nfs-common"
|
S_PACKAGES="nfs-kernel-server nfs-common"
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# Service configuration
|
# Service configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
S_ENABLED=no
|
S_ENABLED=yes
|
||||||
S_NAME="smbd"
|
S_NAME="smbd"
|
||||||
S_PACKAGES="samba"
|
S_PACKAGES="samba"
|
||||||
|
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
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
|
|
13
settings.sh
13
settings.sh
@ -9,7 +9,6 @@ D_TFTP=/srv/tftp
|
|||||||
|
|
||||||
# Full path of this project:
|
# Full path of this project:
|
||||||
D_ROOTDIR=/root/pxe-bootserver
|
D_ROOTDIR=/root/pxe-bootserver
|
||||||
D_RESRC=${D_ROOTDIR}/resrc.d
|
|
||||||
|
|
||||||
# the ip and FQDN for this server
|
# the ip and FQDN for this server
|
||||||
HOST_IP=192.168.75.3
|
HOST_IP=192.168.75.3
|
||||||
@ -27,38 +26,32 @@ fservice (){
|
|||||||
# $4 is a list of packages
|
# $4 is a list of packages
|
||||||
|
|
||||||
if [ "$1" = "yes" ] || [ "$1" = "YES" ]; then
|
if [ "$1" = "yes" ] || [ "$1" = "YES" ]; then
|
||||||
echo "$3 is enabled:"
|
echo "touching $3 :"
|
||||||
case $2 in
|
case $2 in
|
||||||
# INIT
|
# INIT
|
||||||
# Install needed Debian Packages:
|
# Install needed Debian Packages:
|
||||||
init)
|
init)
|
||||||
echo " installing: $4"
|
echo "installing: $4"
|
||||||
apt install -y $4
|
apt install -y $4
|
||||||
;;
|
;;
|
||||||
start)
|
start)
|
||||||
if ! [ "$3" = "none" ]; then
|
if ! [ "$3" = "none" ]; then
|
||||||
echo " starting $3 ..."
|
|
||||||
systemctl start $3
|
systemctl start $3
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
if ! [ "$3" = "none" ]; then
|
if ! [ "$3" = "none" ]; then
|
||||||
echo " stopping $3 ..."
|
|
||||||
systemctl stop $3
|
systemctl stop $3
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
if ! [ "$3" = "none" ]; then
|
if ! [ "$3" = "none" ]; then
|
||||||
echo " restarting $3 ..."
|
|
||||||
systemctl restart $3
|
systemctl restart $3
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
echo "$3 is disabled. "
|
echo "$3 is disabled. nothing to do..."
|
||||||
if ! [ "$3" = "none" ]; then
|
|
||||||
systemctl stop $3
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user