new approach
This commit is contained in:
25
conf.d/service_10_main.conf.sh
Executable file
25
conf.d/service_10_main.conf.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
. ./settings.sh
|
||||
|
||||
#
|
||||
# Main Service
|
||||
#
|
||||
S_ENABLED=YES
|
||||
S_NAME="none"
|
||||
S_PACKAGES="git sudo p7zip p7zip-full ipxe pxelinux syslinux syslinux-common"
|
||||
|
||||
# handle services
|
||||
fservice $S_ENABLED $1 $S_NAME "$S_PACKAGES"
|
||||
|
||||
case $1 in
|
||||
|
||||
init)
|
||||
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
|
||||
|
||||
21
conf.d/service_20_tftp.conf.sh
Executable file
21
conf.d/service_20_tftp.conf.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
. ./settings.sh
|
||||
|
||||
#
|
||||
# Service configuration
|
||||
#
|
||||
S_ENABLED=YES
|
||||
S_NAME="tftpd-hpa"
|
||||
S_PACKAGES="tftpd-hpa"
|
||||
|
||||
fservice $S_ENABLED $1 $S_NAME $S_PACKAGES
|
||||
|
||||
case $1 in
|
||||
|
||||
init)
|
||||
|
||||
;;
|
||||
|
||||
esac
|
||||
23
conf.d/service_30_nfs.conf.sh
Executable file
23
conf.d/service_30_nfs.conf.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
. ./settings.sh
|
||||
|
||||
#
|
||||
# Service configuration
|
||||
#
|
||||
|
||||
S_ENABLED=YES
|
||||
S_NAME="nfs-kernel-server"
|
||||
S_PACKAGES="nfs-kernel-server nfs-common"
|
||||
|
||||
fservice $S_ENABLED $1 $S_NAME $S_PACKAGES
|
||||
|
||||
case $1 in
|
||||
|
||||
init)
|
||||
echo " create /etc/exports..."
|
||||
cat ${D_ROOTDIR}/resrc.d/service_nfs_exports.txt | sed "s#__D_TFTP__#$D_TFTP#g" > /etc/exports
|
||||
;;
|
||||
|
||||
esac
|
||||
23
conf.d/service_40_smbd.conf.sh
Executable file
23
conf.d/service_40_smbd.conf.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
. ./settings.sh
|
||||
|
||||
#
|
||||
# Service configuration
|
||||
#
|
||||
|
||||
S_ENABLED=yes
|
||||
S_NAME="smbd"
|
||||
S_PACKAGES="samba"
|
||||
|
||||
fservice $S_ENABLED $1 $S_NAME $S_PACKAGES
|
||||
|
||||
case $1 in
|
||||
|
||||
init)
|
||||
echo " create smb.conf ..."
|
||||
cat ${D_ROOTDIR}/resrc.d/service_smb.conf.txt | sed "s#__D_TFTP__#$D_TFTP#g" > /etc/samba/smb.conf
|
||||
;;
|
||||
|
||||
esac
|
||||
Reference in New Issue
Block a user