From e799bece29b804b2ce8db3a339682801acfc3109 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Fri, 17 Sep 2010 12:31:11 +0200 Subject: fix for slxconfig-demuxer error --- tools/inc/files.share | 3 ++- tools/installer | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/inc/files.share b/tools/inc/files.share index ede02d08..da5c7302 100644 --- a/tools/inc/files.share +++ b/tools/inc/files.share @@ -1,5 +1,6 @@ d initramfs/stage3-stuff /share/initramfs/ -d initramfs/tools /share/ramfstools/ +d initramfs/tools/hwinfo /share/ramfstools/ +d initramfs/tools/mksquashfs /share/ramfstools/ d initramfs/distro-specs /share/ d initramfs/uclib-rootfs /share/ d boot-env /share/ diff --git a/tools/installer b/tools/installer index 6989f7e9..9345c31b 100755 --- a/tools/installer +++ b/tools/installer @@ -28,7 +28,7 @@ git_version() GITVERSION=`git describe` GITMODIFIED=`(git status | grep "modified:\|added:\|deleted:" -q) && echo "-M"` echo $GITVERSION$GITMODIFIED - echo $GITVERSION > VERSION + [ -w VERSION -o ! -e VERSION ] && echo $GITVERSION > VERSION else cat VERSION fi @@ -513,6 +513,20 @@ build_rpm_package() rm -rf $SLX_RPMBUILD_PATH } + +cleanup_tmpfiles() +{ + rm -f openslx-*.tar + rm -rf _install +} + +check_permissions() +{ + if [ ! "x$(whoami)" = "xroot" ]; then + echo "You need to be root to run installer.." + exit 1 + fi +} clean() { @@ -596,6 +610,7 @@ cmd_mrproper() print_banner +check_permissions versions_update @@ -629,6 +644,8 @@ case "$1" in ;; esac +cleanup_tmpfiles + #make_install_tarball #make_install_tarball gzip #make_install_tarball bzip2 -- cgit v1.2.3-55-g7522