| jul95.tar |
Figure 1: The ic.txt map fields
field 1: cd to this place first field 2: directory or source link field 3: destination link field 4: platform: all,sun,hp,sgi,sol field 5: initially, this may be a type d=directory f=file or l=link field 6: type, d=directory f=file or l=link field 7: protection if file or directory field 8: uid if file or directory field 9: gid if file or directory Example 1: /usr/lib:sendmail::all:f:f:4755:root:staff cd to /usr/lib since field 5 is f, /usr/lib/sendmail, a file may exist, save a timestamped copy since field 6 is f, this indicates that a file needs to be copied in place ic action: cd /usr/lib ic action: mv sendmail sendmail.$uniqid ic action: cp $tdir/sendmail /usr/lib/sendmail since field 7,8, and 9 are set, this indcates that chown and chmod must be run ic action: chown sendmail root.staff ic action: chmod sendmail 4755 Example 2: /etc:motd:/usr/local/adm/motd:all:f:l::: cd to /etc since field 5 is f, /etc/motd, a file may exist, save a timestamped copy since field 6 is l, this indicates that a link needs to be made ic action: cd /etc ic action: mv motd motd.$uniqid ic action: ln -s /usr/local/adm/motd motd
|