Changeset 1218


Ignore:
Timestamp:
01/15/12 12:19:59 (4 months ago)
Author:
tschmitt
Message:
  • LINBO-Konfiguration angepasst.
Location:
main/linuxmuster-base/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/linuxmuster-base/branches/testing/debian/changelog

    r1217 r1218  
    55  * deactivated various ipcop stuff. 
    66 
    7  -- Thomas Schmitt <schmitt@lmz-bw.de>  Sun, 15 Jan 2012 11:40:32 +0100 
     7 -- Thomas Schmitt <schmitt@lmz-bw.de>  Sun, 15 Jan 2012 12:04:07 +0100 
    88 
    99linuxmuster-base (5.1.0-3lenny0) lenny; urgency=low 
  • main/linuxmuster-base/branches/testing/var/config-dynamic/40_linbo/prepatch

    r1207 r1218  
    22# 
    33 
    4 # create tftpd-hpa configs if necessary 
    5 tpldir="/usr/share/linuxmuster-linbo/templates" 
    6 tpl="$tpldir/tftpd-hpa.default" 
    7 conf="/etc/default/tftpd-hpa" 
    8 if ! grep -q "$LINBODIR" "$conf"; then 
    9  echo "Patching $conf." 
    10  backup_file "$conf" 
    11  sed -e "s|@@linbodir@@|$LINBODIR|" "$tpl" > "$conf" 
    12 fi 
    13 conf="/etc/tftp_remap.conf" 
    14 tpl="$tpldir/$(basename $conf)" 
    15 if [ ! -e "$conf" ]; then 
    16  echo "Providing $conf." 
    17  cp "$tpl" "$conf" 
    18 fi 
    19  
    20 # check for tftp in inetd.conf 
    21 conf=/etc/inetd.conf 
    22 if grep -q ^tftp "$conf"; then 
    23  echo "Deactivating tftp in $conf." 
    24  backup_file "$conf" 
    25  sed -e 's|^tftp|#tftp|' -i "$conf" 
    26 fi 
     4dpkg-reconfigure linuxmuster-linbo 
    275 
    286# stuff to do on first time install 
     
    3917 rm -rf $SYSCONFDIR/workstations 
    4018 
    41 else # modify 
    42  
    43  # restore workstations file from link if coming from rembo 
    44  if [ "$imaging_old" = "rembo" ]; then 
    45   if [ -L "$SYSCONFDIR/workstations" ]; then 
    46    rm $SYSCONFDIR/workstations 
    47   else 
    48    backup_file $SYSCONFDIR/workstations 
    49   fi 
    50   cp $REMBOFILES/files/global/wimport_data $SYSCONFDIR/workstations 
    51  fi 
    52  
    5319fi 
    5420 
    5521touch $SYSCONFDIR/workstations 
    56  
    57 # patch path to wimport_data in dist.conf 
    58 backup_file /usr/share/linuxmuster/config/dist.conf 
    59 sed -e "s/^WIMPORTDATA=.*/WIMPORTDATA=\"\$SYSCONFDIR\/workstations\"/" -i /usr/share/linuxmuster/config/dist.conf 
    6022 
    6123# if no linbo password then grep rsync password from rembo.conf or if that fails take simply muster as password 
     
    9153fi 
    9254 
    93 # patch start.confs with serverip 
    94 for i in $LINBODEFAULTCONF `find $LINBODIR/ -type f -name 'start.conf*'`; do 
    95  backup_file $i 
    96  sed -e "s/^Server = \([0-9]\{1,3\}[.]\)\{3\}[0-9]\{1,3\}/Server = $serverip/" -i $i 
    97 done 
    98  
    9955# patch regs with workgroup 
    10056for i in `find $LINBODIR/ -type f -name '*.reg'`; do 
     
    10460done 
    10561 
    106 # patch start variables of tftpd-hpa and rsync 
    107 sed -e "s/^RUN_DAEMON=.*/RUN_DAEMON=yes/" -i /etc/default/tftpd-hpa 
     62# patch rsync start variable 
    10863sed -e "s/^RSYNC_ENABLE=.*/RSYNC_ENABLE=true/" -i /etc/default/rsync 
    10964 
    11065# check for images and start multicast 
    11166update-rc.d linbo-multicast defaults 
    112 res=`find $LINBODIR -name '*.cloop'` 
     67res="$(find $LINBODIR -name \*.cloop)" 
    11368if [ -n "$res" ]; then 
    11469 sed -e "s/^START_MULTICAST=.*/START_MULTICAST=yes/" -i /etc/default/linuxmuster-linbo 
     
    147102 
    148103# start necessary services 
    149 /etc/init.d/tftpd-hpa start 
     104start tftpd-hpa 
    150105/etc/init.d/rsync start 
    151106 
Note: See TracChangeset for help on using the changeset viewer.