wok-6.x diff tmux-mem-cpu-load/receipt @ rev 17105

Add qps
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Aug 30 23:57:51 2014 +0200 (2014-08-30)
parents 633aff33b052
children 17c84cd0c81a
line diff
     1.1 --- a/tmux-mem-cpu-load/receipt	Sun Aug 24 21:21:42 2014 +0200
     1.2 +++ b/tmux-mem-cpu-load/receipt	Sat Aug 30 23:57:51 2014 +0200
     1.3 @@ -24,22 +24,22 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/usr
     1.8 +	mkdir -p $fs/usr $fs/etc/skel
     1.9  	cp -a $install/usr/bin $fs/usr
    1.10 +	cat >> $fs/etc/skel/.tmux.conf << EOT
    1.11 +# tmux-mem-cpu-load
    1.12 +set -g status-interval 2
    1.13 +set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
    1.14 +EOT
    1.15  }
    1.16  
    1.17  post_install()
    1.18  {
    1.19 -	echo -n "Checking for .tmux.conf..."
    1.20 -	for i in $(ls $1/home); do
    1.21 +	for i in $(ls $1/home 2> /dev/null); do
    1.22  		grep -qs "tmux-mem-cpu-load" /home/$i/.tmux.conf && continue
    1.23 -		cat >> /home/$i/.tmux.conf << EOT
    1.24 -# tmux-mem-cpu-load
    1.25 -set -g status-interval 2
    1.26 -set -g status-right "#[fg=black,bg=green]#(tmux-mem-cpu-load 2)#[default]"
    1.27 -EOT
    1.28 -	
    1.29 +		echo -n "Checking for .tmux.conf for $i ..."
    1.30 +		cp -a $1/etc/skel/.tmux.conf /home/$i/
    1.31  		chroot $1/ chown $i.users /home/$i/.tmux.conf
    1.32 +		status
    1.33  	done
    1.34 -	status
    1.35  }