diff options
| author | s8tomaie | 2006-07-06 17:47:27 +0200 |
|---|---|---|
| committer | s8tomaie | 2006-07-06 17:47:27 +0200 |
| commit | e2578363b41c535c9060f8ad1e7e0b591d2bf619 (patch) | |
| tree | 93798f3d85b1580cfaf74f400b863ba383c9926d /initrd/mkdxsinitrd | |
| parent | bugfix in pxemenu creation (diff) | |
| download | core-e2578363b41c535c9060f8ad1e7e0b591d2bf619.tar.gz core-e2578363b41c535c9060f8ad1e7e0b591d2bf619.tar.xz core-e2578363b41c535c9060f8ad1e7e0b591d2bf619.zip | |
mkdxsinitrd Ubunutuversionserkennung angepasst.
distrospecs verschiedene Dienste zum starten gebracht.
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@275 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/mkdxsinitrd')
| -rwxr-xr-x | initrd/mkdxsinitrd | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd index 25ab63a0..cfeae5dd 100755 --- a/initrd/mkdxsinitrd +++ b/initrd/mkdxsinitrd @@ -342,8 +342,13 @@ if [ -z "${DISTRO}" ] ; then DISTRO=${DISTRIB_ID} DISTRO_VER=${DISTRIB_RELEASE} elif [ -e ${ROOTDIR}/etc/debian_version ] ; then - DISTRO=debian - DISTRO_VER=`cat ${ROOTDIR}/etc/debian_version` + if [ $(grep Ubuntu /etc/issue | wc -l) -gt 0 ]; then + DISTRO=Ubuntu + DISTRO_VER=`sed 's/[Uu]buntu \([0-9]*\.[0-9]*\).*/\1/' /etc/issue` + else + DISTRO=debian + DISTRO_VER=`cat ${ROOTDIR}/etc/debian_version` + fi elif [ -e ${ROOTDIR}/etc/gentoo-release ] ; then DISTRO=gentoo # any idea on the versioning scheme?? |
