Magellan Linux

Diff of /trunk/mlivecdbuild/profiles/alx-0_6_branch/prepare_custom

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1409 by niro, Thu Jun 16 11:11:54 2011 UTC revision 1524 by niro, Thu Sep 8 12:17:08 2011 UTC
# Line 3  Line 3 
3  # set an empty root password  # set an empty root password
4  chroot ${CDCHROOTDIR} passwd -d root  chroot ${CDCHROOTDIR} passwd -d root
5    
6    # disable splash X11 vt change and set splash to be always verbose
7    if [[ -f ${CDCHROOTDIR}/etc/splash/splash.conf ]]
8    then
9     sed -i -e 's:^\(SPLASH_X11_TTY=.*\):#\1:' \
10     -e 's:^\(SPLASH_MODE=\).*:\1\"verbose\":' \
11     ${CDCHROOTDIR}/etc/splash/splash.conf
12    fi
13    
14  # stop here if the user don't want to create the install tarball  # stop here if the user don't want to create the install tarball
15  [[ ! -z ${SKIP_CREATE_INSTALL_TARBALL} ]] && exit 0  [[ ! -z ${SKIP_CREATE_INSTALL_TARBALL} ]] && exit 0
16    
# Line 47  ONBOOT="yes" Line 55  ONBOOT="yes"
55  NETWORKING="dhcp"  NETWORKING="dhcp"
56  EOF  EOF
57    
58  # create default xinitrc  # fix mage.rc and config.rc
59  echo "exec startfluxbox" > ${LIVECDROOT}/install-temp/home/station/.xinitrc  updateconfig()
60    {
61     local variables="$@"
62     local value
63     local i
64    
65     if [[ -z ${CONFIG} ]]
66     then
67     echo "You must define \$CONFIG varibale first!"
68     return 1
69     fi
70    
71     for i in ${variables}
72     do
73     value="$(eval echo \${NEW_${i}})"
74     if [[ ! -z $(grep "^${i}=" ${CONFIG}) ]]
75     then
76     echo "fixing ${i} -> ${value}"
77     sed -i "s|^\(${i}=\).*|\1\"${value}\"|" ${CONFIG}
78     else
79     echo "adding ${i}=${value}"
80     echo "${i}=\"${value}\"" >> ${CONFIG}
81     fi
82     done
83    }
84    NEW_SQL_USER="alx_install"
85    NEW_SQL_PASS="@lx"
86    NEW_SQL_HOST="128.20.41.110"
87    NEW_SQL_DB="alx_web"
88    NEW_SMB_UPDATE_HOST="//${NEW_SQL_HOST}/magetmp"
89    NEW_SMB_UPDATE_USER="${NEW_SQL_USER}"
90    NEW_SMB_UPDATE_PASS="${NEW_SQL_PASS}"
91    NEW_MAGE_MIRRORS="http://${NEW_SQL_HOST}/magellan/alx-060"
92    NEW_MAGE_RSYNC="rsync://${NEW_SQL_HOST}/mage-alx-060"
93    NEW_RSYNC="${NEW_MAGE_RSYNC}"
94    NEW_SMAGE2RSYNC="rsync://${NEW_SQL_HOST}/smage-alx-060"
95    NEW_MIRRORS="${NEW_MAGE_MIRRORS}"
96    NEW_MAGE_UNINSTALL_TIMEOUT="0"
97    CONFIG="${LIVECDROOT}/install-temp/etc/mage.rc"
98    updateconfig RSYNC SMAGE2RSYNC MIRRORS MAGE_UNINSTALL_TIMEOUT
99    CONFIG="${LIVECDROOT}/install-temp/etc/alxconfig-ng/config.rc"
100    updateconfig SQL_USER SQL_PASS SQL_HOST SQL_DB SMB_UPDATE_HOST SMB_UPDATE_USER SMB_UPDATE_PASS MAGE_MIRRORS MAGE_RSYNC
101    
102  # create tarball  # create tarball
103  [[ -f ${CDISOROOT}/system/alx-i486.tar.bz2 ]] && rm ${CDISOROOT}/system/alx-i486.tar.bz2  [[ -f ${CDISOROOT}/system/alx-i486.tar.bz2 ]] && rm ${CDISOROOT}/system/alx-i486.tar.bz2

Legend:
Removed from v.1409  
changed lines
  Added in v.1524