summaryrefslogtreecommitdiff
path: root/system/wmconfig/doinst.sh
blob: 05a48b87039e4bb1afff5f2114b36d57fb3c3c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
config() {
  NEW="$1"
  OLD="$(dirname $NEW)/$(basename $NEW .new)"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
    # toss the redundant copy
    rm $NEW
  fi
  # Otherwise, we leave the .new copy for the admin to consider...
}

config etc/wmconfig/Applications.new                                             
config etc/wmconfig/Astronomy.new                                                
config etc/wmconfig/Desktop.new                                                  
config etc/wmconfig/Development.new                                              
config etc/wmconfig/Editors.new
config etc/wmconfig/Edutainment.new                                              
config etc/wmconfig/Funcs.new                                                    
config etc/wmconfig/Games.new                                                    
config etc/wmconfig/Graphics.new                                                 
config etc/wmconfig/Graphics_Viewers.new                                         
config etc/wmconfig/Multimedia.new                                               
config etc/wmconfig/Network.new                                                  
config etc/wmconfig/Office.new                                                   
config etc/wmconfig/Office_Viewers.new                                           
config etc/wmconfig/Shells.new                                                   
config etc/wmconfig/System.new                                                   
config etc/wmconfig/Utilities.new