Changeset 1218
- Timestamp:
- 01/15/12 12:19:59 (4 months ago)
- Location:
- main/linuxmuster-base/branches/testing
- Files:
-
- 2 edited
-
debian/changelog (modified) (1 diff)
-
var/config-dynamic/40_linbo/prepatch (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/linuxmuster-base/branches/testing/debian/changelog
r1217 r1218 5 5 * deactivated various ipcop stuff. 6 6 7 -- Thomas Schmitt <schmitt@lmz-bw.de> Sun, 15 Jan 2012 1 1:40:32+01007 -- Thomas Schmitt <schmitt@lmz-bw.de> Sun, 15 Jan 2012 12:04:07 +0100 8 8 9 9 linuxmuster-base (5.1.0-3lenny0) lenny; urgency=low -
main/linuxmuster-base/branches/testing/var/config-dynamic/40_linbo/prepatch
r1207 r1218 2 2 # 3 3 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 4 dpkg-reconfigure linuxmuster-linbo 27 5 28 6 # stuff to do on first time install … … 39 17 rm -rf $SYSCONFDIR/workstations 40 18 41 else # modify42 43 # restore workstations file from link if coming from rembo44 if [ "$imaging_old" = "rembo" ]; then45 if [ -L "$SYSCONFDIR/workstations" ]; then46 rm $SYSCONFDIR/workstations47 else48 backup_file $SYSCONFDIR/workstations49 fi50 cp $REMBOFILES/files/global/wimport_data $SYSCONFDIR/workstations51 fi52 53 19 fi 54 20 55 21 touch $SYSCONFDIR/workstations 56 57 # patch path to wimport_data in dist.conf58 backup_file /usr/share/linuxmuster/config/dist.conf59 sed -e "s/^WIMPORTDATA=.*/WIMPORTDATA=\"\$SYSCONFDIR\/workstations\"/" -i /usr/share/linuxmuster/config/dist.conf60 22 61 23 # if no linbo password then grep rsync password from rembo.conf or if that fails take simply muster as password … … 91 53 fi 92 54 93 # patch start.confs with serverip94 for i in $LINBODEFAULTCONF `find $LINBODIR/ -type f -name 'start.conf*'`; do95 backup_file $i96 sed -e "s/^Server = \([0-9]\{1,3\}[.]\)\{3\}[0-9]\{1,3\}/Server = $serverip/" -i $i97 done98 99 55 # patch regs with workgroup 100 56 for i in `find $LINBODIR/ -type f -name '*.reg'`; do … … 104 60 done 105 61 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 108 63 sed -e "s/^RSYNC_ENABLE=.*/RSYNC_ENABLE=true/" -i /etc/default/rsync 109 64 110 65 # check for images and start multicast 111 66 update-rc.d linbo-multicast defaults 112 res= `find $LINBODIR -name '*.cloop'`67 res="$(find $LINBODIR -name \*.cloop)" 113 68 if [ -n "$res" ]; then 114 69 sed -e "s/^START_MULTICAST=.*/START_MULTICAST=yes/" -i /etc/default/linuxmuster-linbo … … 147 102 148 103 # start necessary services 149 /etc/init.d/tftpd-hpa start 104 start tftpd-hpa 150 105 /etc/init.d/rsync start 151 106
Note: See TracChangeset
for help on using the changeset viewer.
