
10 changed files with 90 additions and 46 deletions
@ -0,0 +1,2 @@
|
||||
2018-04-26 - 1.9.1 |
||||
* seperate script and config |
@ -1,25 +1,39 @@
|
||||
#!/bin/bash |
||||
# at the moment only generate dir structure in /build |
||||
|
||||
# setup build dir |
||||
rootfs=build |
||||
##################### |
||||
## setup build dir ## |
||||
##################### |
||||
|
||||
rootdir=build |
||||
echo "clear build" |
||||
[ -d $rootfs ] && rm -v -R $rootfs |
||||
mkdir $rootfs |
||||
[ -d $rootdir ] && rm -v -R $rootdir |
||||
mkdir $rootdir |
||||
|
||||
###################### |
||||
## skripte copieren ## |
||||
###################### |
||||
|
||||
echo "copy files" |
||||
## skripte copieren |
||||
|
||||
# remaster |
||||
mkdir -p $rootfs/usr/bin/ |
||||
cp -v src/remaster.sh $rootfs/usr/bin/remaster |
||||
chmod +x $rootfs/usr/bin/remaster |
||||
mkdir -p $rootdir/usr/bin/ |
||||
cp -v src/remaster.sh $rootdir/usr/bin/remaster |
||||
chmod +x $rootdir/usr/bin/remaster |
||||
|
||||
# modules |
||||
mkdir -p $rootfs/usr/lib/remaster/ |
||||
#... |
||||
mkdir -p $rootdir/usr/lib/remaster/ |
||||
for i in dist functions mods; do |
||||
cp -v src/$i/* $rootdir/usr/lib/remaster/ |
||||
done |
||||
|
||||
# setting |
||||
cp -v src/config.sample.cfg $rootdir/etc/remaster/config.sample.cfg |
||||
|
||||
|
||||
# Pfade anpassen |
||||
#sed ... |
||||
|
||||
|
||||
#mkdeb... |
||||
#not jet |
||||
|
@ -0,0 +1,39 @@
|
||||
#cfg |
||||
|
||||
######################################################### |
||||
## sample-config rename it to config.cfg after changes ## |
||||
######################################################### |
||||
|
||||
## MODUS |
||||
modus_default="update_pxe" |
||||
|
||||
#CD/DVD |
||||
#entweder iso_source oder filesystem_source alls quelle |
||||
# -> bei iso gen erforderlich! |
||||
iso_source="/data/remaster/desinfect-2017.iso" |
||||
#destination optinal |
||||
iso_destination="/data/remaster/result/custom_desinfect_`date '+%Y-%m-%d'`.iso" |
||||
iso_lable="DESINFECT_`date '+%Y-%m-%d'`" |
||||
|
||||
#Filesystem (for pxe) |
||||
#entweder iso_source oder filesystem_source alls quelle |
||||
filesystem_source="/data/remaster/result/filesystem.squashfs" |
||||
|
||||
#Network |
||||
proxy_host="proxy.local" |
||||
proxy_port="8080" |
||||
domain="local" |
||||
nameserver="10.x.x.2,10.x.x.1" |
||||
|
||||
#remaster_script |
||||
distro="desinfect2017" |
||||
|
||||
#LOG |
||||
log_file="/data/remaster/logs/`date '+%Y-%m-%d'`.log" |
||||
log_mail_source="desinfect@email.clocal" |
||||
log_mail_smtp="smtp.mail.local:25" |
||||
log_mail_aim="6543@email.clocal" |
||||
log_mail_subject="Desinfect_Remaster" |
||||
|
||||
#Sonstiges |
||||
tools_list="xrdp clamav nano htop nmon iftop tmux dsniff nmap openssh-server tightvncserver rsync e2fsprogs foremost gddrescue recoverjpeg safecopy sleuthkit testdisk arp-scan" |
Loading…
Reference in new issue