wok diff slim/receipt @ rev 2178
Add synergy (thanks Matthew)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 08 16:53:08 2009 +0000 (2009-02-08) |
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 08 16:53:08 2009 +0000 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" ] &&