wok-next diff slim/receipt @ rev 2129
get-wifi-firmware: b43-firmware version 4.150.10.5
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 01 19:02:11 2009 +0100 (2009-02-01) |
parents | bd6010223726 |
children | c61177674d4d |
line diff
1.1 --- a/slim/receipt Tue Dec 23 10:31:12 2008 +0000 1.2 +++ b/slim/receipt Sun Feb 01 19:02:11 2009 +0100 1.3 @@ -33,8 +33,24 @@ 1.4 chown -R root.root $fs 1.5 } 1.6 1.7 +pre_instal() 1.8 +{ 1.9 + local root 1.10 + root=$1 1.11 + # Backup config file. 1.12 + if [ -f $root/etc/slim.conf ]; then 1.13 + cp $root/etc/slim.conf $root/etc/slim.conf.bak 1.14 + fi 1.15 +} 1.16 + 1.17 post_install() 1.18 { 1.19 + local root 1.20 + root=$1 1.21 + # Restore original config. 1.22 + if [ -f $root/etc/slim.conf.bak ]; then 1.23 + mv -f $root/etc/slim.conf.bak $root/etc/slim.conf 1.24 + fi 1.25 local USER 1.26 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) 1.27 [ -n "$USER" ] &&