Changeset 513

Show
Ignore:
Timestamp:
05/12/08 08:33:56 (2 months ago)
Author:
free
Message:

Idempotent limits

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cdd-utils/trunk/cdd-config

    r501 r513  
    88. $libdir/desktop.sh 
    99. $libdir/server.sh 
     10. $libdir/sound.sh 
    1011. $libdir/suites.sh 
    1112 
  • cdd-utils/trunk/debian/changelog

    r512 r513  
    55  * Splitted functions in library files 
    66  * Code cleanup 
    7   * Idempotent ldap, nfs, monit, touchscreen and apt scripts 
     7  * Idempotent ldap, nfs, monit, touchscreen, limits and apt scripts 
    88  * Instruct dhclient to send host-name 
    99  * Enable spamassassin cron update 
  • cdd-utils/trunk/lib/sound.sh

    r499 r513  
    2727 
    2828    if ! exists $cfg; then warning "$cfg not found"; return; fi     
    29     if grep -q ^@audio $cfg; then return; fi 
     29    del_key "@audio - rtprio"  "$cfg" 
     30    del_key "@audio - memlock" "$cfg" 
     31    del_key "@audio - nice"    "$cfg" 
    3032 
    31     cat <<EOF >> $cfg 
    32 @audio - rtprio 99 
    33 @audio - memlock 950000 
    34 @audio - nice -10 
    35 EOF 
     33    add_key "@audio - rtprio"  " " "$cfg" 
     34    add_key "@audio - memlock" " " "$cfg" 
     35    add_key "@audio - nice"    " " "$cfg" 
     36 
     37    set_key "@audio - rtprio"  " " "99"     "$cfg" 
     38    set_key "@audio - memlock" " " "950000" "$cfg" 
     39    set_key "@audio - nice"    " " "-10"    "$cfg" 
    3640} 
    3741