# Kickstart file automatically generated by anaconda and modified for CentOS # 6 install. #version=DEVEL install lang en_US.UTF-8 keyboard us # %include /tmp/network.txt #rootpw --iscrypted $6$aIWV9CYJa.hWGlsf$UwnRx5UMshqpIjV.dL6o3Iy2PS9WS9THsh1VzCsbAofQ2u0CvRrE76IOKg95fWZOTZ9Ag6Cwy3LbU.y9L3Jxs1 firewall --service=ssh authconfig --enableshadow --passalgo=sha512 selinux --disabled # timezone America/Chicago bootloader --location=mbr --driveorder=sda --append="biosdevname=0 i915.preliminary_hw_support=1 net.ifnames=1 biosdevname=0" # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work # # ======================================================== # TEST PARTITIONING! REMOVE BEFORE USING AT SMARTS!! # -------------------------------------------------------- ## clearpart --none ## part /boot --fstype=ext4 --size=200 ## part swap --size=4096 ## part / --fstype=ext4 --size=16384 # firstboot --disable xconfig %packages @additional-devel @base @cifs-file-server @compat-libraries @console-internet @core @debugging @desktop @desktop-debugging @desktop-platform @desktop-platform-devel @development @directory-client @eclipse @emacs @fonts @general-desktop @graphical-admin-tools @graphics @hardware-monitoring @input-methods @internet-applications @internet-browser @java-platform @kde-desktop @legacy-unix @legacy-x @nfs-file-server @network-file-system-client @network-tools @performance @perl-runtime @print-client @remote-desktop-clients @scientific @security-tools @server-platform @server-platform-devel @server-policy @tex @technical-writing @virtualization @virtualization-client @virtualization-platform @workstation-policy @x11 libgcrypt-devel libXinerama-devel openmotif-devel libXmu-devel xorg-x11-proto-devel startup-notification-devel libgnomeui-devel libbonobo-devel junit libXau-devel libXrandr-devel popt-devel gnome-python2-desktop libdrm-devel libxslt-devel libglade2-devel gnutls-devel mtools yum-plugin-versionlock sox gpm pax python-dmidecode oddjob wodim kernel-doc yum-plugin-downloadonly sgpio genisoimage x86info dos2unix expect cpupowerutils unix2dos device-mapper-persistent-data logwatch ncurses-term vsftpd mutt systemtap-client qt-mysql desktop-file-utils ant rpmdevtools jpackage-utils rpmlint samba-winbind certmonger pam_krb5 krb5-workstation emacs-nox ctags-etags emacs-gnuplot emacs-auctex netpbm-progs ImageMagick i2c-tools lm_sensors telnet tcp_wrappers tftp openmotif xterm xorg-x11-xdm libXmu libXp ebtables wireshark nmap perl-Date-Calc perl-Date-Manip perl-DBD-SQLite perl-libwww-perl perl-URI perl-HTML-Tagset perl-HTML-Parser perl-IO-Tty php unixODBC rdesktop tigervnc freerdp atlas sharutils dialog mc screen krb5-appl-servers numpy p11-kit-trust openscap hmaccalc ipmitool ipmiutil openscap-utils libvirt-java sendmail sendmail-cf -libhangul -ibus-hangul -postfix -memtest86+ -abrt-desktop -NetworkManager-gnome -gnome-bluetooth #======================================================================================= # Script running at the beginning of the install process #--------------------------------------------------------------------------------------- %pre --interpreter /bin/bash #!/bin/bash exec < /dev/tty3 > /dev/tty3 2>/dev/tty3 chvt 3 hn="" rsdb="" skylla="" station="" echo "===========================================================================" echo -E " ____ _ " echo -E " / ___| _ __ ___ __ _ _ __| |_ ___ " echo -E " \___ \| '_ ' _ \ / _' | '__| __/ __| " echo -E " ___) | | | | | | (_| | | | |_\__ \ " echo -E " |____/|_| |_| |_|\__,_|_| _\__|___/ " echo -E " ____ _ _ " echo -E " | __ ) _ __ ___ __ _ __| | ___ __ _ ___| |_(_)_ __ __ _ " echo -E " | _ \| '__/ _ \ / _' |/ _' |/ __/ _' / __| __| | '_ \ / _' |" echo -E " | |_) | | | (_) | (_| | (_| | (_| (_| \__ \ |_| | | | | (_| |" echo -E " |____/|_| \___/ \__,_|\__,_|\___\__,_|___/\__|_|_| |_|\__, |" echo -E " |___/ " echo echo "---------------------------------------------------------------------------" echo echo "While CentOS 6 is a significant step forward, there are a few things needed" echo "which it won't prompt for. Also, we will get some information so that some" echo "automatic configuration of the system can happen." echo echo "---------------------------------------------------------------------------" echo echo " *** Please enter the following details: *** " while [ "$hn" == "" ]; do echo read -p "This machine's short hostname: " hn done while [ "$dn" == "" ]; do echo read -p "This machine's domain name: " dn done while [ "$rsdb" == "" ]; do echo read -p "Enter the database server (such as 'serv1-xxxx'): " rsdb done while [ "$skylla" == "" ]; do echo read -p "Enter the hostname of the skylla this will attach to: " skylla done while [ "$station" == "" ]; do echo read -p "Enter the station call of the skylla unit: " station done clear exec < /dev/tty1 > /dev/tty1 2>/dev/tty1 chvt 1 echo "network --device eth0 --bootproto static --noipv6 --hostname ${hn}" > /tmp/network.txt echo "SKYLLA=$skylla" > /tmp/skylla.txt echo "RSDB=$rsdb" >> /tmp/skylla.txt echo "STATION=$station" >> /tmp/skylla.txt echo "SHORTNAME=${hn}" >> /tmp/skylla.txt echo "LONGNAME=${hn}.${dn}" >> /tmp/skylla.txt #======================================================================================= # Script running at the end of the install process #--------------------------------------------------------------------------------------- %post --nochroot --log /mnt/sysimage/root/ks-post.log --interpreter /bin/bash echo "# Configured by OnAirDigital/Smarts kickstart file" > /mnt/sysimage/etc/sysconfig/desktop echo "DESKTOP=KDE" >> /mnt/sysimage/etc/sysconfig/desktop echo "DISPLAYMANAGER=KDE" >> /mnt/sysimage/etc/sysconfig/desktop echo "[Desktop]" > /mnt/sysimage/root/.dmrc echo "Session=kde" >> /mnt/sysimage/root/.dmrc echo "[Desktop]" > /mnt/sysimage/etc/skel/.dmrc echo "Session=kde" >> /mnt/sysimage/etc/skel/.dmrc echo "RUN_FIRSTBOOT=NO" > /mnt/sysimage/etc/sysconfig/firstboot chroot /mnt/sysimage groupadd -g 150 -o -f priv sed -i 's/GRAPHICAL=yes/GRAPHICAL=no/' /mnt/sysimage/etc/sysconfig/init 2>/dev/null sed -i 's/\brhgb\b//' /mnt/sysimage/boot/grub/grub.conf 2>/dev/null sed -i 's/\bquiet\b//' /mnt/sysimage/boot/grub/grub.conf 2>/dev/null chroot /mnt/sysimage ln -sf /lib/libncurses.so.{5,4} chroot /mnt/sysimage ln -sf /lib/libreadline.so.{5,4} mkdir -p /mnt/sysimage/etc/skel/Desktop mkdir -p /mnt/sysimage/etc/skel/.kde/Autostart sed -i 's/.*AutoLoginEnable=.*/AutoLoginEnable=true/' /mnt/sysimage/etc/kde/kdm/kdmrc sed -i 's/.*AutoLoginUser=.*/AutoLoginUser=skylla/' /mnt/sysimage/etc/kde/kdm/kdmrc sed -i 's/#set bell-style none/set bell-style none/' /mnt/sysimage/etc/inputrc sed -i 's/timeout=5/timeout=10/' /mnt/sysimage/boot/grub/grub.conf sed -i 's!^\(\s*disable.*=.*\)yes!\1no!' /mnt/sysimage/etc/xinetd.d/krb5-telnet chroot /mnt/sysimage ln -s /usr/sbin/{system-config-network-tui,netconfig} # chroot /mnt/sysimage /usr/sbin/memtest-setup chroot /mnt/sysimage chkconfig --level 2345 nmb on # Fix network manager. We have no need for it. chroot /mnt/sysimage chkconfig NetworkManager off sed -i 's/NM_CONTROLLED.*/NM_CONTROLLED=no/' /mnt/sysimage/etc/sysconfig/network-scripts/ifcfg-eth0 cat >> /etc/profile.d/skyllas.sh <<'EOF' # Create easy alias to list the Skylla systems known alias skyllas="grep '.*-skylla' /etc/hosts" EOF chmod 0644 /etc/profile.d/skyllas.sh for fspec in /mnt/sysimage/etc/skel/.bashrc ; do echo >> $fspec echo "# This enhanced file (00.69d) was auto-generated by On Air on: $(date)" >> $fspec # Note 'EOF' is quoted to tell bash to not perform any expansions or operations # on the lines below. cat >> $fspec <<'EOF' # Retain the protective aliases to prevent disasters as root: if [ "$(id -u)" -eq '0' ]; then alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' fi # Add a number of convenience aliases to save typing: unalias l 2>/dev/null unalias l. 2>/dev/null unalias ll 2>/dev/null alias l='less' alias ls='ls -F --color=tty' alias lsl='ls -lA' alias new='lsl -rt' alias md=mkdir alias rd=rmdir # Add aliases to RS-HD-specific commands: alias chattr-rshd='/usr/local/rs-hd/etc/chattr-rshd.sh' alias check-errors='/usr/local/rs-hd/etc/check-errors.sh' alias fetchit='/usr/local/rs-hd/etc/fetchit.sh' alias missing='/usr/local/rs-hd/etc/missing.sh' alias orphans='/usr/local/rs-hd/etc/orphans.sh' alias showraid='cat /proc/mdstat' # This affords a quick change of directories: alias RS='cd /usr/local/rs-hd' alias LOGS='cd /usr/local/rs-hd/tx_mx_merge/LOGS' # Navigates directores with ease: alias ..='cd ../..' alias ...='cd ../../..' alias ....='cd ../../../..' alias cd..='cd ../..' alias cd...='cd ../../..' alias cd....='cd ../../../..' # Set an easily-read prompt, with a bold, uppercase attribute # if you're root. Also ensure that manpages and RS-HD commands # are accessible: if [ "$(id -u)" -eq '0' ]; then export PS1='\n\t \d\n\e[1mROOT\e[0m@\h\n\w>' else export PS1='\n\t \d\n\u@\h\n\w>' fi # 13 DEC 2010: [PWC] - Just add to the end of existing data export PATH=$PATH:/usr/local/rs-hd/bin # Allow everyone to read the RS-HD manpages: # 13 DEC 2010: [PWC] - Just add to the end of existing data export MANPATH=$MANPATH:/usr/local/rs-hd/doc # Influence behavior of the less pager, see the manual page for what # each one of these flags does for a modern version of less, which # has the single-character horizontal scroll and raw mode capabilities: export LESS='-iMQRS -x4 -#1' # Make sure history has timestamps export HISTTIMEFORMAT='%F %T ' export VISUAL=/usr/bin/vim EOF done cat >> /mnt/sysimage/etc/skel/.inputrc <<'EOF' # # /home/oadusa/.inputrc - Customized settings for intuitive bash keybindings. # # This enhanced file (00.69c) was auto-generated by On Air on: Fri Jul 30 11:44:12 CDT 2010 # Make the terminal NOT beep on tab expansion and other actions: set bell-style none # Handle Alt-prefixed keys correctly: set convert-meta on set input-meta off set meta-flag off set output-meta off "\e[3~": delete-char "\eOD": backward-char # Right arrow keycodes "\e[D": backward-char "\eOC": forward-char # Left arrow keycodes "\e[C": forward-char "\eOA": previous-history # Up arrow keycodes "\e[A": previous-history "\eOB": next-history # Down arrow keycodes "\e[B": next-history "\e[1~": beginning-of-line # Home keycodes "\e[7~": beginning-of-line "\eOH": beginning-of-line "\e[H": beginning-of-line "\e[4~": end-of-line # End keycodes "\e[8~": end-of-line "\eOF": end-of-line "\e[F": end-of-line "\e[5~": history-search-backward # PageUp "\e[6~": history-search-forward # PageDown "\e[5C": forward-word # Ctrl-Right "\e[1;5C": forward-word "\e[5D": backward-word # Ctrl-Left "\e[1;5D": backward-word EOF cat >> /mnt/sysimage/etc/skel/.vimrc <<'EOF' "" " /etc/skel/.vimrc - Customized settings for the vim editor." "" " This enhanced file (00.69c) was auto-generated by On Air on: Wed Oct 15 11:53:19 CDT 2008" if has("autocmd") set nocompatible " use Vim defaults instead of pure vi compatibility," " set this first thus allowing other options to tune" syntax off " can be annoying on certain terminals, disable" set nohls " highlighted searches are distracting but can be" endif set shiftwidth=4 " canonical K&R fomatting used by On Air" set tabstop=4 " likewise" set nowrap " chop lines instead of escaping wrapping" set sidescroll=1 " horizontal scroll of 1 column" set ruler " show a ruler with line and column number" set autowrite " save file on suspend, make, shell command, etc" set bs=2 " allow backspacing over everything in insert mode" set showmatch " do cursor hopping on pair match" set showmode " show INSERT, REPLACE or VISUAL mode" " left arrow key mapping, goto previous character " map OD map [D map! OD map! [D " right arrow key mapping, goto next character " map OC map [C map! OC map! [C " up arrow key mapping, goto previous line" map OA map [A map! OA map! [A " down arrow key mapping, goto next line " map OB map [B map! OB map! [B EOF # Make sure /root has customized installed files as well for fspec in bashrc inputrc vimrc ; do cp /mnt/sysimage/etc/skel/.${fspec} /mnt/sysimage/root/ done # Configure standard users for Smarts systems chroot /mnt/sysimage useradd -p '$6$JbPvrl7E$LWH9aBCrJi2d5L/kYBC3i4jBV7OxrfsRpSoXomGqqzk7f4dkqy51FpC54UugPLV6hxKFjALYL./vu0MkSgh291' -g priv -u 500 -m -c 'On Air Digital USA Login Account' oadusa chroot /mnt/sysimage useradd -p '$6$ZCKp3RiN$h3xYsgg0n71MR.Sdj/sG0X0Vv8UuJrioVT6vvxvVpIzY6evFPJ2y73sxJb//Vgod7GdhQLyxIiJK/6WuN7BxH1' -g priv -u 501 -m -c 'Production Computer #1' prod1 chroot /mnt/sysimage useradd -p '$6$6Odd8ZEq$K2eWo0Z8EwRudWLadnplfafJveBzytTBu7/J5VyEYrzzRg29nLtXLNg0uwGLnk3uzJggebW/1FGTYsJlDwMuw1' -g priv -u 502 -m -c 'Production Computer #2' prod2 chroot /mnt/sysimage useradd -p '$6$38P2zdIG$1IUmy9V/4asSXYOL8wUYY8pqYW/cc6PDY3COsDCRK57ZAcfqHHoXTyi8YEXlTdDrTv2aBRHqmr.e.7HVRNfA10' -g priv -u 503 -m -c 'Production Computer #3' prod3 chroot /mnt/sysimage useradd -p '$6$dj5ShiCe$FDlK2Ntv480OIXqnXnTQ.4t9EM4cZrO.uSJ1JeEeF5pJ4LpZZI24Uo7AzvBd0pKITFdC0zvES0EReZWWCNsPm0' -g priv -u 504 -m -c 'Music Scheduling Computer' music chroot /mnt/sysimage useradd -p '$6$UouhBi9q$/HHgTndQh1TCwBXKRPdK366eVqE3AtOKIRj0ejZIhXdr3Buwv6JI9LFSsuSirSJjk11yuDmRgX6s.AXtR8Fk70' -g priv -u 505 -m -c 'Traffic (Commercial) Log Computer' traffic chroot /mnt/sysimage useradd -p '$6$Ga5QvBZA$hyG2wlXIZGNwcsddGBjunI3Jk0GygNspya7S0I7UaFRe36JB3tKCvJaK8Gr41psAgCSG4g49OCLYAFQjLteAO1' -g priv -u 506 -m -c 'UDS II Computer' uds2 chroot /mnt/sysimage useradd -p '$6$hO6bFRZo$rDAleeI..C2aK3teuibCUUP57xdHlfIqKiEdJnhNWp.BJW41YYS/4fChQ2ZM.FHPI/8SMRWwj9pK3JtZGAC9Z.' -g priv -u 507 -m -c 'Smartcaster (Unattended Recording)' smarts chroot /mnt/sysimage useradd -p '$6$3kshhBvC$ymEfIzZ/Xk7dP1F/16SQ7gwwMBDPeeXlqpJDvoEEls4RYhUMUbGWG/sNRqt22a7NT7MNqu4TsuM8BvzZthJjY.' -g priv -u 508 -m -c 'Remote Access' 'remote-user' chroot /mnt/sysimage useradd -p '$6$n/8TDaWK$VrlN8u.YUGoWFuKsNhfU1oEU3tWJvUsOAw7fOzVvv.9R/..15M7jGQdyyBvmPaPtNGyKjkvvzY61/eINz9Aoy/' -g priv -u 509 -m -c 'Skylla' skylla # Make sure oadusa and skylla have customized installed files as well # even though this should have been taken care of for fspec in bashrc inputrc vimrc ; do cp /mnt/sysimage/etc/skel/.${fspec} /mnt/sysimage/home/oadusa chown 500:150 /mnt/sysimage/home/oadusa/.${fspec} cp /mnt/sysimage/etc/skel/.${fspec} /mnt/sysimage/home/skylla chown 509:150 /mnt/sysimage/home/skylla/.${fspec} done # Fix xorg.conf for no hotplug events mkdir -p /mnt/sysimage/etc/X11 cat >> /mnt/sysimage/etc/X11/xorg.conf <<'EOF' Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "Device" Identifier "Videocard0" Driver "intel" Option "HotPlug" "Off" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection EOF # Customize Skylla users KDE environment mkdir -p /mnt/sysimage/home/skylla/.kde/share/{config,apps/konsole} cat >> /mnt/sysimage/home/skylla/.kde/share/config/konsolerc <<'EOF' [Desktop Entry] DefaultProfile=Shell.profile [Favorite Profiles] Favorites=/home/skylla/.kde/share/apps/konsole/Shell.profile [MainWindow] Height 1080=687 State=AAAA/wAAAAD9AAAAAAAAA9YAAAKYAAAABAAAAAQAAAAIAAAACPwAAAAA Width 1920=982 EOF cat >> /mnt/sysimage/home/skylla/.kde/share/config/knotifyrc <<'EOF' [Phonon::AudioOutput] KNotify_Volume=1 [Sounds] No sound=true Use external player=false Volume=100 EOF cat >> /mnt/sysimage/home/skylla/.kde/share/config/kickoffrc <<'EOF' [Favorites] FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/systemsettings.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/konsole.desktop,/home/skylla/Desktop/Skylla.desktop EOF cat >> /mnt/sysimage/home/skylla/.kde/share/config/kcmdisplayrc <<'EOF' [$Version] update_info=kcmdisplayrc.upd:kde3 [DisplayEnergy] displayEnergySaving=true displayPowerOff=0 displayStandby=0 displaySuspend=0 EOF cat >> /mnt/sysimage/home/skylla/.kde/share/apps/konsole/Shell.profile <<'EOF' [Appearance] ColorScheme=Linux [General] Icon=utilities-terminal LocalTabTitleFormat=%d : %n MenuIndex=1 Name=Shell Parent=FALLBACK/ RemoteTabTitleFormat=%h : %u EOF chroot /mnt/sysimage chown -R skylla:priv /home/skylla/ # Get the settings we asked for in the 'pre' section . /tmp/skylla.txt # debugging... this can go away (and it did) # set > /mnt/sysimage/tmp/root_set.txt # mount > /mnt/sysimage/tmp/root_mount.txt mkdir -p /mnt/sysimage/usr/local/rs-hd/{bin,common,doc,etc,lib,locale,log,recover,tmp,tx_mx_merge/LOGS,{BURN-IN,$STATION}/{objects,reference}} chown -R 0:150 /mnt/sysimage/usr/local/rs-hd/ chmod 0775 /mnt/sysimage/usr/local/rs-hd/{bin,common,doc,etc,lib,locale,log,recover,tmp,tx_mx_merge{,/LOGS},{BURN-IN,$STATION}/{,objects,reference}} SAVEIFS="$IFS" IFS=' ' cmdline=( $( < /proc/cmdline )) IFS="$SAVEIFS" for i in $(seq -s ' ' 0 $((${#cmdline[@]} - 1))) ; do foo="${cmdline[$i]}" if [ "${foo:0:4}" == "repo" ]; then IFS=":" nfsjunk=( $foo ) IFS="$SAVEIFS" # more debugging echo "NFS server is ${nfsjunk[1]}" > /tmp/nfsjunk.txt echo "NFS directory is ${nfsjunk[2]}" >> /tmp/nfsjunk.txt ## mkdir -p "/tmp/foo" ## mount -t nfs ${nfsjunk[1]}:${nfsjunk[2]} /tmp/foo -o nolock ## SKYLIBS=$(basename $(ls /tmp/foo/Smarts/skylla-libs*rpm | tail -n 1)) ## SKYGUI=$(basename $(ls /tmp/foo/Smarts/skylla_gui*rpm | tail -n 1)) ## if [ -n "$SKYLIBS" ]; then ## cp /tmp/foo/Smarts/$SKYLIBS /mnt/sysimage/tmp/ ## chroot /mnt/sysimage rpm -ivh /tmp/$SKYLIBS ## fi ## if [ -n "$SKYGUI" ]; then ## cp /tmp/foo/Smarts/$SKYGUI /mnt/sysimage/tmp/ ## chroot /mnt/sysimage rpm -ivh /tmp/$SKYGUI ## sed -i "s/^\([ ]*NAME=\).*/\1$STATION/" /mnt/sysimage/home/skylla/skyllaui.conf ## sed -i "s/\(.*\)KXYZ-FM\(.*\)/\1$STATION\2/" /mnt/sysimage/home/skylla/skyllaui.conf ## sed -i "s/^\([ ]*DBSERVER=\).*/\1$RSDB/" /mnt/sysimage/home/skylla/skyllaui.conf ## sed -i "s/^\([ ]*SERVER=\).*/\1$SKYLLA/" /mnt/sysimage/home/skylla/skyllaui.conf ## fi ## umount -a -t nfs fi done # handle IPMI LAN port. First make sure we have IPMI by checking with the # 'health' command. Exit status will be non-zero if ipmi is not available. ipmiutil health RES=$? if [ "0" == "$RES" ]; then ipmiutil smcoem lanport dedicated ipmiutil lan ipmiutil lan -l -I 10.10.10.10 -S 255.255.255.0 -G 10.10.10.1 fi # fix /etc/sysconfig/network so RS-HD doesn't complain echo "NETWORKING=yes" > /mnt/sysimage/etc/sysconfig/network echo "HOSTNAME=$LONGNAME" >> /mnt/sysimage/etc/sysconfig/network sed -i 's/\"//g' /mnt/sysimage/etc/sysconfig/network-scripts/ifcfg-eth0 # Finally, fix up the fstab FST="/mnt/sysimage/etc/fstab" # a). Fix UUID lines to refer to actual devices grep '^UUID=' $FST | awk -F '[= ]' '{print $2 " " $3}' | while read uuid mpoint ; do DEV=$(blkid -U $uuid) sed -i -r -e "s#^UUID=${uuid}#$DEV #" $FST done # b). Add RSHD lines RS="/usr/local/rs-hd" REST="nfs timeo=32,retrans=8,wsize=8192,rsize=8192,nolock,noatime,bg,intr,nfsvers=2,actimeo=1 0 0" echo >> $FST echo "# ==================== [ DON'T ever remove THIS line! ] ====================" >> $FST echo "#$RSDB:$RS/common $RS/common $REST" >> $FST echo "#$RSDB:$RS/tx_mx_merge/LOGS $RS/tx_mx_merge/LOGS $REST" >> $FST echo "#$RSDB:$RS/$STATION $RS/$STATION $REST" >> $FST if [ -f /mnt/sysimage/etc/sysconfig/network-scripts/ifcfg-eth0 ]; then . /mnt/sysimage/etc/sysconfig/network-scripts/ifcfg-eth0 if [ -n "IPADDR" ]; then echo -e "\n$IPADDR\t$LONGNAME $SHORTNAME\n" >> /mnt/sysimage/etc/hosts fi fi %end