wok rev 12977
Up: slitaz-boot-scripts (5.1) colors, clean, speed, fixes and improvments
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jun 02 01:56:33 2012 +0200 (2012-06-02) |
parents | dac216ce48c5 |
children | 815296e7f2ed |
files | slitaz-boot-scripts/receipt |
line diff
1.1 --- a/slitaz-boot-scripts/receipt Fri Jun 01 22:53:36 2012 +0200 1.2 +++ b/slitaz-boot-scripts/receipt Sat Jun 02 01:56:33 2012 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="slitaz-boot-scripts" 1.7 -VERSION="5.0" 1.8 +VERSION="5.1" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="Provide all the initialisation scripts used at boot time." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 @@ -23,9 +23,9 @@ 1.13 # 1.14 genpkg_rules() 1.15 { 1.16 - mkdir -p $fs/usr/share $fs/etc/X11 1.17 + mkdir -p $fs/usr/share 1.18 cp -a $src/etc $fs 1.19 - cp -a $src/bin $fs 1.20 + cp -a $src/bin $fs/usr 1.21 cp -a $src/init $fs 1.22 cp -a $src/applications $fs/usr/share 1.23 1.24 @@ -36,55 +36,9 @@ 1.25 chmod 755 $fs/init 1.26 } 1.27 1.28 -# Pre install commands. 1.29 +# Post install commands. 1.30 # 1.31 -pre_install() 1.32 -{ 1.33 - local root 1.34 - root=$1 1.35 - 1.36 - # Backup file to restore with post install 1.37 - echo "Creating backups of configs..." 1.38 - cp $root/etc/rcS.conf $root/etc/rcS.conf.bak 2>/dev/null 1.39 - cp $root/etc/network.conf $root/etc/network.conf.bak 2>/dev/null 1.40 - cp $root/etc/inittab $root/etc/inittab.bak 2>/dev/null 1.41 - cp $root/etc/init.d/local.sh $root/etc/init.d/local.sh.bak 2>/dev/null 1.42 -} 1.43 - 1.44 post_install() 1.45 { 1.46 - local root 1.47 - root=$1 1.48 - echo "Restoring configs backups..." 1.49 - mv -f $root/etc/rcS.conf.bak $root/etc/rcS.conf 2>/dev/null 1.50 - mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null 1.51 - mv -f $root/etc/inittab.bak $root/etc/inittab 2>/dev/null 1.52 - mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh 2>/dev/null 1.53 - 1.54 - # Fast boot X config from 3.0 1.55 - if ! grep -q ^FAST_BOOT_X $root/etc/rcS.conf; then 1.56 - cat >> $root/etc/rcS.conf << "EOT" 1.57 -# Fast boot into X by setting the system keymap-locale and starting 1.58 -# the Slim login manager earlier at boot time. If fast X is enabled 1.59 -# then dbus, hald and slim can be removed from RUN_DAEMONS. 1.60 -FAST_BOOT_X="no" 1.61 - 1.62 -EOT 1.63 - fi 1.64 - # Fbsplash gui boot 1.65 - if ! grep -q ^FBSPLASH $root/etc/rcS.conf; then 1.66 - cat >> $root/etc/rcS.conf << "EOT" 1.67 -# Graphical boot with fbsplash (To easily configure use: tazfbsplash) 1.68 -FBSPLASH="no" 1.69 -FBSPLASH_THEME="slitaz" 1.70 - 1.71 -EOT 1.72 - fi 1.73 - 1.74 - # No more hwconf.sh and i18n.sh --> system.sh 1.75 - sed -i s'/hwconf.sh/system.sh/' $root/etc/rcS.conf 1.76 - sed -i s'/i18n.sh//' $root/etc/rcS.conf 1.77 - 1.78 - # Remove old desktop file 1.79 - rm -f /usr/share/applications/boot-log.desktop 1.80 + /usr/bin/rcSconf up 1.81 }