# HG changeset patch # User Christophe Lincoln # Date 1338594993 -7200 # Node ID 8791d537f797a247b8560aa8fb9d88c28e47a903 # Parent dac216ce48c5e9d7ed74db0a12a8990e66faac0c Up: slitaz-boot-scripts (5.1) colors, clean, speed, fixes and improvments diff -r dac216ce48c5 -r 8791d537f797 slitaz-boot-scripts/receipt --- a/slitaz-boot-scripts/receipt Fri Jun 01 22:53:36 2012 +0200 +++ b/slitaz-boot-scripts/receipt Sat Jun 02 01:56:33 2012 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="slitaz-boot-scripts" -VERSION="5.0" +VERSION="5.1" CATEGORY="base-system" SHORT_DESC="Provide all the initialisation scripts used at boot time." MAINTAINER="pankso@slitaz.org" @@ -23,9 +23,9 @@ # genpkg_rules() { - mkdir -p $fs/usr/share $fs/etc/X11 + mkdir -p $fs/usr/share cp -a $src/etc $fs - cp -a $src/bin $fs + cp -a $src/bin $fs/usr cp -a $src/init $fs cp -a $src/applications $fs/usr/share @@ -36,55 +36,9 @@ chmod 755 $fs/init } -# Pre install commands. +# Post install commands. # -pre_install() -{ - local root - root=$1 - - # Backup file to restore with post install - echo "Creating backups of configs..." - cp $root/etc/rcS.conf $root/etc/rcS.conf.bak 2>/dev/null - cp $root/etc/network.conf $root/etc/network.conf.bak 2>/dev/null - cp $root/etc/inittab $root/etc/inittab.bak 2>/dev/null - cp $root/etc/init.d/local.sh $root/etc/init.d/local.sh.bak 2>/dev/null -} - post_install() { - local root - root=$1 - echo "Restoring configs backups..." - mv -f $root/etc/rcS.conf.bak $root/etc/rcS.conf 2>/dev/null - mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null - mv -f $root/etc/inittab.bak $root/etc/inittab 2>/dev/null - mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh 2>/dev/null - - # Fast boot X config from 3.0 - if ! grep -q ^FAST_BOOT_X $root/etc/rcS.conf; then - cat >> $root/etc/rcS.conf << "EOT" -# Fast boot into X by setting the system keymap-locale and starting -# the Slim login manager earlier at boot time. If fast X is enabled -# then dbus, hald and slim can be removed from RUN_DAEMONS. -FAST_BOOT_X="no" - -EOT - fi - # Fbsplash gui boot - if ! grep -q ^FBSPLASH $root/etc/rcS.conf; then - cat >> $root/etc/rcS.conf << "EOT" -# Graphical boot with fbsplash (To easily configure use: tazfbsplash) -FBSPLASH="no" -FBSPLASH_THEME="slitaz" - -EOT - fi - - # No more hwconf.sh and i18n.sh --> system.sh - sed -i s'/hwconf.sh/system.sh/' $root/etc/rcS.conf - sed -i s'/i18n.sh//' $root/etc/rcS.conf - - # Remove old desktop file - rm -f /usr/share/applications/boot-log.desktop + /usr/bin/rcSconf up }