wok-undigest rev 620
pyradio (try link w/alias)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon Jan 23 19:42:24 2012 +0000 (2012-01-23) |
parents | 7f901d285a36 |
children | faada725c2bc |
files | pyradio/receipt |
line diff
1.1 --- a/pyradio/receipt Fri Jan 20 21:03:43 2012 +0000 1.2 +++ b/pyradio/receipt Mon Jan 23 19:42:24 2012 +0000 1.3 @@ -19,15 +19,19 @@ 1.4 cp -a $src $fs/usr/lib/pyradio 1.5 } 1.6 1.7 -# Create a link to /usr/bin/pyradio 1.8 +# Create an alias to /usr/lib/pyradio 1.9 post_install() 1.10 { 1.11 - ln -s $1/usr/lib/pyradio/pyradio $1/usr/bin/pyradio 1.12 + #ln -s $1/usr/lib/pyradio/pyradio $1/usr/bin/pyradio 1.13 + echo "" >> $1/etc/profile 1.14 + echo "# pyradio alias" >> $1/etc/profile 1.15 + echo "alias pyradio='/usr/lib/pyradio/pyradio'" >> $1/etc/profile 1.16 } 1.17 1.18 -# Remove link 1.19 +# Remove alias 1.20 post_remove() 1.21 { 1.22 - rm -f $1/usr/bin/pyradio 1.23 + #rm -f $1/usr/bin/pyradio 1.24 + sed -i '/pyradio/d' $1/etc/profile 1.25 } 1.26