2
0

configRun 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006
  1. #! /bin/ksh
  2. ########
  3. # Product: CDE
  4. # Fileset: CDE-RUN
  5. # configure
  6. # @(#) $TOG: configRun /main/2 1998/11/05 15:04:43 mgreess $
  7. ########
  8. PRODUCT=CDE
  9. FILESET=CDE-RUN
  10. retval=0
  11. CreateAppConfigDirectory()
  12. {
  13. #
  14. # Create the APPCONFIG directory inside DT_CONFIG_TOP and create
  15. # all of its subdirectories
  16. #
  17. cd $DT_CONFIG_TOP
  18. if [ ! -d $APPCONFIG ]
  19. then
  20. mkdir $APPCONFIG
  21. fi
  22. cd $APPCONFIG
  23. for i in $APPCONFIG_DIRS
  24. do
  25. if [ ! -d $i ]
  26. then
  27. mkdir $i
  28. fi
  29. cd $i
  30. #
  31. # for each locale
  32. #
  33. for j in $DT_TOP/$APPCONFIG/$i/*
  34. do
  35. if [ ! -d `basename $j` ]
  36. then
  37. mkdir `basename $j`
  38. fi
  39. done
  40. cd ..
  41. done
  42. }
  43. FixInetdDotConf()
  44. {
  45. FILE="/etc/inetd.conf"
  46. TMPFILE="/tmp/inetd.conf"
  47. #
  48. # desired inetd.conf entry:
  49. # rpc dgram udp wait root /usr/dt/bin/rpc.cmsd 100068 2-4 cmsd
  50. #
  51. #
  52. # get rid of legacy entry
  53. #
  54. awk '{if ($1 == "#rpc" && $7 == "100068" && $9 == "rpc.cmsd")
  55. ;
  56. else
  57. print $0
  58. }' $FILE >$TMPFILE
  59. mv $FILE ${FILE}.old
  60. mv $TMPFILE $FILE
  61. CMSD=/usr/dt/bin/rpc.cmsd
  62. awk -v cmsd=$CMSD \
  63. '{if ($7 == "100068" && $6 != cmsd)
  64. print "#cde " $0;
  65. else
  66. print $0
  67. }' $FILE >$TMPFILE
  68. #
  69. # remove 100068 2-4 rpc.cmsd entry
  70. #
  71. awk -v cmsd=$CMSD \
  72. '{if ($6 == cmsd && $7 == "100068" && $8 == "2-4")
  73. ;
  74. else
  75. print $0
  76. }' $FILE >$TMPFILE
  77. mv $FILE ${FILE}.old
  78. mv $TMPFILE $FILE
  79. #
  80. # now see if there is an occurrence of cmsd
  81. #
  82. awk -v cmsd=$CMSD \
  83. '{if ($6 == cmsd && $7 == "100068" && $8 == "2-5")
  84. print $0 >"/tmp/cmsd-already-there"
  85. }' $FILE >/dev/null
  86. #
  87. # if it is not there, add it
  88. #
  89. if [ ! -f /tmp/cmsd-already-there ]
  90. then
  91. echo "rpc dgram udp wait root $CMSD 100068 2-5 rpc.cmsd" >>$FILE
  92. else
  93. rm /tmp/cmsd-already-there
  94. fi
  95. }
  96. UnfixInetdDotConf()
  97. {
  98. FILE="/etc/inetd.conf"
  99. TMPFILE="/tmp/inetd.conf"
  100. CMSD=/usr/dt/bin/rpc.cmsd
  101. # first remove the CDE rpc.cmsd entry
  102. awk -v cmsd=$CMSD \
  103. '{if ($7 == "100068" && $6 == cmsd)
  104. ;
  105. else
  106. print $0
  107. }' $FILE >$TMPFILE
  108. mv $TMPFILE $FILE
  109. # now uncomment any previously existing 100068 entry
  110. awk '{if ($1 == "#cde") {
  111. if ($8 == "100068") {
  112. $1 = $2;
  113. $2 = ""
  114. }
  115. }
  116. print $0
  117. }' $FILE >$TMPFILE
  118. mv $TMPFILE $FILE
  119. }
  120. FixEtcRpc()
  121. {
  122. #
  123. # now check to see if the proper entry is in /etc/rpc
  124. #
  125. RPCFILE=/etc/rpc
  126. TMPFILE=/tmp/etc-rpc
  127. if [ ! -f $RPCFILE ]
  128. then
  129. # if the file doesn't exist (highly unlikely), make one
  130. # with the proper entry
  131. #
  132. echo "cmsd 100068 dtcalendar" >$RPCFILE
  133. else
  134. #
  135. # check to see if the entry is already there
  136. #
  137. awk '{if ($1 == "cmsd" && $2 == "100068")
  138. print $0 > "/tmp/etc-rpc-already-there"
  139. }' $RPCFILE >/dev/null
  140. if [ ! -f /tmp/etc-rpc-already-there ]
  141. then
  142. #
  143. # if it isn't, check to see if either term already
  144. # exists
  145. #
  146. awk '{if ($1 == "cmsd" || $2 == "100068")
  147. print $0 > "/tmp/etc-rpc-already-there"
  148. }' $RPCFILE >/dev/null
  149. #
  150. # if either one does they need to be commented out
  151. #
  152. if [ ! -f /tmp/etc-rpc-already-there ]
  153. then
  154. echo "cmsd 100068 dtcalendar" >>$RPCFILE
  155. else
  156. awk '{if ($1 == "cmsd" || $2 == "100068")
  157. print "#cde " $0;
  158. else
  159. print $0
  160. }' $RPCFILE >$TMPFILE
  161. echo "cmsd 100068 dtcalendar" >>$TMPFILE
  162. mv $TMPFILE $RPCFILE
  163. rm /tmp/etc-rpc-already-there
  164. fi
  165. else
  166. rm /tmp/etc-rpc-already-there
  167. fi
  168. fi
  169. }
  170. UnfixEtcRpc()
  171. {
  172. FILE="/etc/rpc"
  173. TMPFILE="/tmp/etc-rpc"
  174. awk '{if ($1 == "cmsd" && $2 == "100068")
  175. ;
  176. else
  177. print $0
  178. }' $FILE >$TMPFILE
  179. mv $TMPFILE $FILE
  180. awk '{if ($1 == "#cde" && ($2 == "cmsd" || $3 == "100068"))
  181. ;
  182. else
  183. print $0
  184. }' $FILE >$TMPFILE
  185. mv $TMPFILE $FILE
  186. }
  187. ConfigurePrintersDir()
  188. {
  189. cd $DT_TOP/$APPCONFIG/appmanager
  190. #
  191. # for each locale
  192. #
  193. for i in *
  194. do
  195. if [ -d $i ]
  196. then
  197. cd $i
  198. #
  199. # for each directory in the locale, check for a
  200. # localized version of the Printers directory
  201. # and for the file lp_Print within that directory
  202. #
  203. for j in *
  204. do
  205. if [ -f $j/$DEFAULT_PRINTER ]
  206. then
  207. PRINTERS=$j
  208. # make the equivalent directory in the configuration
  209. # directory
  210. if [ ! -d $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i ]
  211. then
  212. mkdir $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i
  213. fi
  214. cd $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i
  215. if [ ! -d $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS ]
  216. then
  217. mkdir $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS
  218. fi
  219. cd $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS
  220. # now copy the file over from the installation dirctory
  221. # if it is not already present.
  222. if [ ! -f $DEFAULT_PRINTER ]
  223. then
  224. cp $DT_TOP/$APPCONFIG/appmanager/$i/$PRINTERS/$DEFAULT_PRINTER .
  225. fi
  226. cd $DT_TOP/$APPCONFIG/appmanager/$i
  227. fi
  228. done
  229. cd $DT_TOP/$APPCONFIG/appmanager
  230. fi
  231. done
  232. }
  233. KillIt()
  234. {
  235. ps -ef | fgrep $1 | grep -v grep >/tmp/tmppsout
  236. if [ -s /tmp/tmppsout ]
  237. then
  238. awk '{print "kill " $2}' /tmp/tmppsout | /bin/ksh
  239. sleep 2
  240. ps -ef | fgrep $1 | grep -v grep >/tmp/tmppsout
  241. if [ -s /tmp/tmppsout ]
  242. then
  243. awk '{print "kill -TERM " $2}' /tmp/tmppsout | /bin/ksh
  244. sleep 2
  245. ps -ef | fgrep $1 | grep -v grep >/tmp/tmppsout
  246. if [ -s /tmp/tmppsout ]
  247. then
  248. awk '{print "kill -9 " $2}' /tmp/tmppsout | /bin/ksh
  249. sleep 2
  250. fi
  251. fi
  252. fi
  253. rm /tmp/tmppsout
  254. }
  255. RemoveRunFiles()
  256. {
  257. while read SRC
  258. do
  259. if [ "$SRC" != "" ]
  260. then
  261. rm -f $SRC
  262. dirname=${SRC%/*}
  263. if [ -d $dirname ]
  264. then
  265. cd $dirname
  266. while [ "$dirname" != "$CDE_TOP" ]
  267. do
  268. cd ..
  269. rmdir ${dirname##*/} >/dev/null 2>/dev/null
  270. dirname=${dirname%/*}
  271. done
  272. fi
  273. fi
  274. done <<-EOF
  275. /usr/dt/config/Xfailsafe
  276. /usr/dt/bin/dtrc
  277. /usr/dt/bin/dtrc
  278. /usr/dt/bin/rc.dt
  279. /usr/dt/config/Xconfig
  280. /usr/dt/config/Xreset
  281. /usr/dt/config/Xsetup
  282. /usr/dt/config/Xservers
  283. /usr/dt/config/Xaccess
  284. /usr/dt/config/Xstartup
  285. /usr/dt/config/C/Xresources
  286. /usr/dt/config/C/sys.dtwmrc
  287. /usr/dt/config/sys.dtprofile
  288. /usr/dt/config/C/sys.resources
  289. /usr/dt/config/C/sys.session
  290. /usr/dt/config/C/sys.font
  291. /usr/dt/config/dtlogin.rc
  292. /usr/dt/bin/dtconfig
  293. /usr/dt/bin/dtconfig
  294. /usr/dt/app-defaults/C/Dthello
  295. /usr/dt/app-defaults/C/Dtsession
  296. /usr/dt/app-defaults/C/Dtwm
  297. /usr/dt/app-defaults/C/Dtfile
  298. /usr/dt/app-defaults/C/Dtstyle
  299. /usr/dt/app-defaults/C/Dtpad
  300. /usr/dt/app-defaults/C/Dtscreen
  301. /usr/dt/app-defaults/C/Dticon
  302. /usr/dt/app-defaults/C/Dtcalc
  303. /usr/dt/app-defaults/C/Dtterm
  304. /usr/dt/app-defaults/C/Dt
  305. /usr/dt/app-defaults/C/Dtcreate
  306. /usr/dt/app-defaults/C/Dtprintinfo
  307. /usr/dt/app-defaults/C/UNIXbindings
  308. /usr/dt/bin/Xsession
  309. /usr/dt/config/Xsession.d/0010.dtpaths
  310. /usr/dt/config/Xsession.d/0020.dtims
  311. /usr/dt/config/Xsession.d/0030.dttmpdir
  312. /usr/dt/config/Xsession.d/0050.srcdotsh
  313. /usr/dt/share/examples/sys.font.iso
  314. /usr/dt/bin/dtprintinfo
  315. /usr/dt/config/C/dtfile.config
  316. /usr/dt/bin/dtconvertvf
  317. /usr/dt/bin/dtconvertvf
  318. /usr/dt/bin/dtcreate
  319. /usr/dt/appconfig/appmanager/C/Information/README
  320. /usr/dt/appconfig/appmanager/C/System_Admin/README
  321. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Bitmap
  322. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Spell
  323. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xclipboard
  324. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Diff
  325. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Compress
  326. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermConsole
  327. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Wc
  328. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XclockDig
  329. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DuSort
  330. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Df
  331. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xfd
  332. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DtwmrcEdit
  333. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadResources
  334. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ExecuteCmd
  335. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Env
  336. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xlsfonts
  337. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Nm
  338. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwininfo
  339. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xprop
  340. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Make
  341. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xrefresh
  342. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadActions
  343. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadApps
  344. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermRlogin
  345. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermDtspcd
  346. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XtermRlogin
  347. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XtermDtspcd
  348. /usr/dt/appconfig/appmanager/C/Desktop_Tools/RestorePanel
  349. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Rm
  350. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Grep
  351. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xload
  352. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Tar
  353. /usr/dt/appconfig/appmanager/C/Desktop_Tools/TarList
  354. /usr/dt/appconfig/appmanager/C/Desktop_Tools/TarUnpack
  355. /usr/dt/appconfig/appmanager/C/Desktop_Tools/File
  356. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Uncompress
  357. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Vi
  358. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermErrorlog
  359. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xterm
  360. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xdpyinfo
  361. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwd
  362. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwud
  363. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcalc
  364. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcm
  365. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcreate
  366. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtfile
  367. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dticon
  368. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dthelpview
  369. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtmail
  370. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtmanpageview
  371. /usr/dt/appconfig/appmanager/C/Desktop_Apps/DtPrintManager
  372. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtstyle
  373. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtpad
  374. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtterm
  375. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dttrash
  376. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Dttypes
  377. /usr/dt/bin/dtlp
  378. /usr/dt/share/palettes/desc.C
  379. /usr/dt/share/backdrops/desc.C
  380. /usr/dt/share/backdrops/Foreground.bm
  381. /usr/dt/share/backdrops/Background.bm
  382. /usr/dt/share/backdrops/NoBackdrop.pm
  383. /usr/dt/share/backdrops/Ankh.bm
  384. /usr/dt/share/backdrops/BrickWall.bm
  385. /usr/dt/share/backdrops/Concave.pm
  386. /usr/dt/share/backdrops/Convex.pm
  387. /usr/dt/share/backdrops/Corduroy.pm
  388. /usr/dt/share/backdrops/Crochet.pm
  389. /usr/dt/share/backdrops/InlayColor.pm
  390. /usr/dt/share/backdrops/InlayPlain.pm
  391. /usr/dt/share/backdrops/KnitLight.pm
  392. /usr/dt/share/backdrops/Lattice.pm
  393. /usr/dt/share/backdrops/LatticeBig.pm
  394. /usr/dt/share/backdrops/Leaves.pm
  395. /usr/dt/share/backdrops/OldChars.pm
  396. /usr/dt/share/backdrops/Paver.pm
  397. /usr/dt/share/backdrops/Pebbles.pm
  398. /usr/dt/share/backdrops/PinStripe.pm
  399. /usr/dt/share/backdrops/RakedSand.bm
  400. /usr/dt/share/backdrops/RicePaper.pm
  401. /usr/dt/share/backdrops/SkyDark.pm
  402. /usr/dt/share/backdrops/SkyLight.pm
  403. /usr/dt/share/backdrops/Sprinkles.pm
  404. /usr/dt/share/backdrops/Toronto.bm
  405. /usr/dt/share/backdrops/WaterDrops.pm
  406. /usr/dt/share/backdrops/Wooly.pm
  407. /usr/dt/backdrops
  408. /usr/dt/bin/dtfile_error
  409. /usr/dt/bin/dtfile
  410. /usr/dt/bin/dtfile_copy
  411. /usr/dt/bin/dtsession
  412. /usr/dt/bin/dtsession_res
  413. /usr/dt/bin/dtwm
  414. /usr/dt/bin/dtfplist
  415. /usr/dt/bin/dtlogin
  416. /usr/dt/bin/dtchooser
  417. /usr/dt/bin/dtgreet
  418. /usr/dt/bin/hpterm
  419. /usr/dt/bin/hpterm
  420. /usr/dt/bin/aixterm
  421. /usr/dt/bin/dthello
  422. /usr/dt/bin/dtaction
  423. /usr/dt/bin/dtpad
  424. /usr/dt/bin/dtstyle
  425. /usr/dt/bin/dtscreen
  426. /usr/dt/bin/dticon
  427. /usr/dt/bin/dtcalc
  428. /usr/dt/bin/dtterm
  429. /usr/dt/config/dtterm.ti
  430. /usr/dt/bin/dtsearchpath
  431. /usr/dt/bin/dtappgather
  432. /usr/dt/bin/dttypes
  433. /usr/dt/bin/dsdm
  434. /usr/dt/bin/rpc.cmsd
  435. /usr/dt/bin/dtcm
  436. /usr/dt/bin/dtcm_admin
  437. /usr/dt/bin/dtcm_editor
  438. /usr/dt/bin/dtcm_delete
  439. /usr/dt/bin/dtcm_insert
  440. /usr/dt/bin/dtcm_lookup
  441. /usr/dt/appconfig/types/C/dtcm.dt
  442. /usr/dt/app-defaults/C/Dtcm
  443. /usr/dt/bin/dtdspmsg
  444. /usr/dt/bin/dtmail
  445. /usr/dt/bin/dtmailpr
  446. /usr/dt/bin/dtmailconv
  447. /usr/dt/appconfig/types/C/dtmail.dt
  448. /usr/dt/app-defaults/C/Dtmail
  449. /usr/dt/appconfig/types/C/dtwm.fp
  450. /usr/dt/appconfig/types/C/autoStart.dt
  451. /usr/dt/appconfig/types/C/uxstd.dt
  452. /usr/dt/appconfig/types/C/dt.dt
  453. /usr/dt/appconfig/types/C/develop.dt
  454. /usr/dt/appconfig/types/C/datatypes.dt
  455. /usr/dt/appconfig/types/C/dtappman.dt
  456. /usr/dt/appconfig/types/C/dtfile.dt
  457. /usr/dt/appconfig/types/C/dtpad.dt
  458. /usr/dt/appconfig/types/C/xclients.dt
  459. /usr/dt/appconfig/types/C/print.dt
  460. /usr/dt/appconfig/types/C/user-prefs.dt
  461. /usr/dt/appconfig/types/C/dthelp.dt
  462. /usr/dt/appconfig/types/C/dtscreen.dt
  463. /usr/dt/share/examples/types/C/IconBrowse.dt
  464. /usr/dt/share/examples/types/C/miscActions.dt
  465. /usr/dt/share/examples/types/C/miscImages.dt
  466. /usr/dt/bin/dterror.ds
  467. /usr/dt/bin/xmbind
  468. /usr/dt/lib/bindings/xmbind.alias
  469. /usr/dt/lib/bindings/acorn
  470. /usr/dt/lib/bindings/apollo
  471. /usr/dt/lib/bindings/dec
  472. /usr/dt/lib/bindings/dg_AViiON
  473. /usr/dt/lib/bindings/doubleclick
  474. /usr/dt/lib/bindings/hitachi
  475. /usr/dt/lib/bindings/hp
  476. /usr/dt/lib/bindings/ibm
  477. /usr/dt/lib/bindings/intergraph
  478. /usr/dt/lib/bindings/intergraph17
  479. /usr/dt/lib/bindings/megatek
  480. /usr/dt/lib/bindings/motorola
  481. /usr/dt/lib/bindings/ncr_at
  482. /usr/dt/lib/bindings/ncr_vt
  483. /usr/dt/lib/bindings/sgi
  484. /usr/dt/lib/bindings/siemens_9733
  485. /usr/dt/lib/bindings/siemens_wx200
  486. /usr/dt/lib/bindings/sony
  487. /usr/dt/lib/bindings/sun
  488. /usr/dt/lib/bindings/tek
  489. /usr/dt/config/Xsession.d/0040.xmbind
  490. /usr/dt/examples
  491. EOF
  492. }
  493. VerifyInstalledFiles()
  494. {
  495. echo "Status mode owner group filename"
  496. echo "-----------------------------------------"
  497. # exists correct correct correct /usr/dt/foo1
  498. # MISSING WRONG WRONG WRONG /usr/dt/foo2
  499. # exists the link is correct /usr/dt/link
  500. while read SRC
  501. do
  502. if [ "$SRC" != "" ]
  503. then
  504. set -A tokens $SRC
  505. if [ "${tokens[3]}" = "file" ]
  506. then
  507. if [ -f ${tokens[0]} ]
  508. then
  509. echo "exists \c"
  510. else
  511. echo "MISSING or REMOVED \c"
  512. echo "${tokens[0]}"
  513. continue
  514. fi
  515. elif [ "${tokens[3]}" = "sym_link" ]
  516. then
  517. if [ -L ${tokens[0]} ]
  518. then
  519. echo "exists \c"
  520. else
  521. echo "MISSING or REMOVED \c"
  522. echo "${tokens[0]}"
  523. continue
  524. fi
  525. fi
  526. if [ "${tokens[3]}" = "file" ]
  527. then
  528. touch /tmp/config-test
  529. chmod ${tokens[1]} /tmp/config-test
  530. tmpperms=`ls -l /tmp/config-test | awk '{print $1}'`
  531. realperms=`ls -l ${tokens[0]} | awk '{print $1}'`
  532. if [ "$tmpperms" = "$realperms" ]
  533. then
  534. echo "correct \c"
  535. else
  536. echo " WRONG \c"
  537. fi
  538. owner=`ls -l ${tokens[0]} | awk '{print $3}'`
  539. if [ "$owner" = "${tokens[4]}" ]
  540. then
  541. echo "correct \c"
  542. else
  543. echo " WRONG \c"
  544. fi
  545. group=`ls -l ${tokens[0]} | awk '{print $4}'`
  546. if [ "$group" = "${tokens[5]}" ]
  547. then
  548. echo "correct \c"
  549. else
  550. echo " WRONG \c"
  551. fi
  552. elif [ "${tokens[3]}" = "sym_link" ]
  553. then
  554. linkto=`ls -l ${tokens[0]} | awk '{print $11}'`
  555. if [ "${tokens[2]}" = "$linkto" ]
  556. then
  557. echo " the link is correct \c"
  558. else
  559. echo " the link is WRONG \c"
  560. fi
  561. fi
  562. echo "${tokens[0]}"
  563. fi
  564. done <<-EOF
  565. /usr/dt/config/Xfailsafe 0555 cde1/dtlogin/config/Xfailsafe file bin bin di---- 378 cde_dt
  566. /usr/dt/bin/dtrc 0544 cde1/dtconfig/hp/dtrc file bin bin di---- 378 cde_dt
  567. /usr/dt/config/Xconfig 0444 cde1/dtlogin/config/Xconfig file bin bin di---- 378 cde_dt
  568. /usr/dt/config/Xreset 0544 cde1/dtlogin/config/Xreset file bin bin di---- 378 cde_dt
  569. /usr/dt/config/Xsetup 0544 cde1/dtlogin/config/Xsetup file bin bin di---- 378 cde_dt
  570. /usr/dt/config/Xservers 0444 cde1/dtlogin/config/Xservers file bin bin di---- 378 cde_dt
  571. /usr/dt/config/Xaccess 0444 cde1/dtlogin/config/Xaccess file bin bin di---- 378 cde_dt
  572. /usr/dt/config/Xstartup 0544 cde1/dtlogin/config/Xstartup file bin bin di---- 378 cde_dt
  573. /usr/dt/config/C/Xresources 0444 cde1/localized/C/config/Xresources file bin bin di---- 378 cde_dt
  574. /usr/dt/config/C/sys.dtwmrc 0444 cde1/localized/C/config/sys.dtwmrc file bin bin di---- 378 cde_dt
  575. /usr/dt/config/sys.dtprofile 0555 cde1/dtlogin/config/dtprofile file bin bin di---- 378 cde_dt
  576. /usr/dt/config/C/sys.resources 0444 cde1/localized/C/config/sys.resources file bin bin di---- 378 cde_dt
  577. /usr/dt/config/C/sys.session 0444 cde1/localized/C/config/sys.session file bin bin di---- 378 cde_dt
  578. /usr/dt/config/C/sys.font 0444 cde1/localized/C/config/sys.font file bin bin di---- 378 cde_dt
  579. /usr/dt/app-defaults/C/Dthello 0444 cde1/localized/C/app-defaults/Dthello file bin bin di---- 378 cde_dt
  580. /usr/dt/app-defaults/C/Dtsession 0444 cde1/localized/C/app-defaults/Dtsession file bin bin di---- 378 cde_dt
  581. /usr/dt/app-defaults/C/Dtwm 0444 cde1/localized/C/app-defaults/Dtwm file bin bin di---- 378 cde_dt
  582. /usr/dt/app-defaults/C/Dtfile 0444 cde1/localized/C/app-defaults/Dtfile file bin bin di---- 378 cde_dt
  583. /usr/dt/app-defaults/C/Dtstyle 0444 cde1/localized/C/app-defaults/Dtstyle file bin bin di---- 378 cde_dt
  584. /usr/dt/app-defaults/C/Dtpad 0444 cde1/localized/C/app-defaults/Dtpad file bin bin di---- 378 cde_dt
  585. /usr/dt/app-defaults/C/Dtscreen 0444 cde1/localized/C/app-defaults/Dtscreen file bin bin di---- 378 cde_dt
  586. /usr/dt/app-defaults/C/Dticon 0444 cde1/localized/C/app-defaults/Dticon file bin bin di---- 378 cde_dt
  587. /usr/dt/app-defaults/C/Dtcalc 0444 cde1/localized/C/app-defaults/Dtcalc file bin bin di---- 378 cde_dt
  588. /usr/dt/app-defaults/C/Dtterm 0444 cde1/localized/C/app-defaults/Dtterm file bin bin di---- 378 cde_dt
  589. /usr/dt/app-defaults/C/Dt 0444 cde1/localized/C/app-defaults/Dt file bin bin di---- 378 cde_dt
  590. /usr/dt/app-defaults/C/Dtcreate 0444 cde1/localized/C/app-defaults/Dtcreate file bin bin di---- 378 cde_dt
  591. /usr/dt/app-defaults/C/Dtprintinfo 0444 cde1/dtprintinfo/Dtprintinfo file bin bin di---- 378 cde_dt
  592. /usr/dt/app-defaults/C/UNIXbindings 0444 lib1/DtWidget/UNIXbindings file bin bin di---- 378 cde_dt
  593. /usr/dt/bin/Xsession 0555 cde1/dtlogin/config/Xsession file bin bin di---- 378 cde_dt
  594. /usr/dt/config/Xsession.d/0010.dtpaths 0555 cde1/dtsearchpath/0010.dtpaths file bin bin di---- 378 cde_dt
  595. /usr/dt/config/Xsession.d/0020.dtims 0555 cde1/dtlogin/config/0020.dtims file bin bin di---- 378 cde_dt
  596. /usr/dt/config/Xsession.d/0030.dttmpdir 0555 cde1/dtsearchpath/0030.dttmpdir file bin bin di---- 378 cde_dt
  597. /usr/dt/config/Xsession.d/0050.srcdotsh 0555 cde1/dtsearchpath/0050.srcdotsh file bin bin di---- 378 cde_dt
  598. /usr/dt/share/examples/sys.font.iso 0444 cde1/dtsession/sys.font.iso file bin bin di---- 378 cde_dt
  599. /usr/dt/bin/dtprintinfo 04555 cde1/dtprintinfo/dtprintinfo file root bin di---- 378 cde_dt
  600. /usr/dt/config/C/dtfile.config 0444 cde1/localized/C/config/dtfile.config file bin bin di---- 378 cde_dt
  601. /usr/dt/bin/dtconvertvf 0555 cde1/util/scripts/convertvf file bin bin di---- 378 cde_dt
  602. /usr/dt/bin/dtcreate 0555 cde1/dtcreate/dtcreate file bin bin di---- 378 cde_dt
  603. /usr/dt/appconfig/appmanager/C/Information/README 0444 cde1/dtappgather/howto-customize file bin bin di---- 378 cde_dt
  604. /usr/dt/appconfig/appmanager/C/System_Admin/README 0444 cde1/dtappgather/howto-customize file bin bin di---- 378 cde_dt
  605. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Bitmap 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  606. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Spell 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  607. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xclipboard 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  608. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Diff 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  609. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Compress 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  610. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermConsole 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  611. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Wc 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  612. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XclockDig 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  613. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DuSort 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  614. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Df 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  615. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xfd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  616. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DtwmrcEdit 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  617. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadResources 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  618. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ExecuteCmd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  619. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Env 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  620. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xlsfonts 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  621. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Nm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  622. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwininfo 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  623. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xprop 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  624. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Make 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  625. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xrefresh 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  626. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadActions 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  627. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadApps 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  628. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermRlogin 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  629. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermDtspcd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  630. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XtermRlogin 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  631. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XtermDtspcd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  632. /usr/dt/appconfig/appmanager/C/Desktop_Tools/RestorePanel 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  633. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Rm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  634. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Grep 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  635. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xload 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  636. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Tar 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  637. /usr/dt/appconfig/appmanager/C/Desktop_Tools/TarList 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  638. /usr/dt/appconfig/appmanager/C/Desktop_Tools/TarUnpack 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  639. /usr/dt/appconfig/appmanager/C/Desktop_Tools/File 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  640. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Uncompress 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  641. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Vi 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  642. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermErrorlog 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  643. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xterm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  644. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xdpyinfo 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  645. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  646. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwud 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  647. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcalc 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  648. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  649. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcreate 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  650. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtfile 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  651. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dticon 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  652. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dthelpview 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  653. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtmail 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  654. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtmanpageview 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  655. /usr/dt/appconfig/appmanager/C/Desktop_Apps/DtPrintManager 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  656. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtstyle 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  657. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtpad 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  658. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtterm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  659. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dttrash 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  660. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Dttypes 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  661. /usr/dt/bin/dtlp 0555 cde1/dtprintegrate/dtlp file bin bin di---- 378 cde_dt
  662. /usr/dt/share/palettes/desc.C 0444 cde1/localized/C/palettes/desc.C file bin bin di---- 378 cde_dt
  663. /usr/dt/share/backdrops/desc.C 0444 cde1/localized/C/backdrops/desc.C file bin bin di---- 378 cde_dt
  664. /usr/dt/share/backdrops/Foreground.bm 0444 cde1/backdrops/Foreground.bm file bin bin di---- 378 cde_dt
  665. /usr/dt/share/backdrops/Background.bm 0444 cde1/backdrops/Background.bm file bin bin di---- 378 cde_dt
  666. /usr/dt/share/backdrops/NoBackdrop.pm 0444 cde1/backdrops/NoBackdrop.pm file bin bin di---- 378 cde_dt
  667. /usr/dt/share/backdrops/Ankh.bm 0444 cde1/backdrops/Ankh.bm file bin bin di---- 378 cde_dt
  668. /usr/dt/share/backdrops/BrickWall.bm 0444 cde1/backdrops/BrickWall.bm file bin bin di---- 378 cde_dt
  669. /usr/dt/share/backdrops/Concave.pm 0444 cde1/backdrops/Concave.pm file bin bin di---- 378 cde_dt
  670. /usr/dt/share/backdrops/Convex.pm 0444 cde1/backdrops/Convex.pm file bin bin di---- 378 cde_dt
  671. /usr/dt/share/backdrops/Corduroy.pm 0444 cde1/backdrops/Corduroy.pm file bin bin di---- 378 cde_dt
  672. /usr/dt/share/backdrops/Crochet.pm 0444 cde1/backdrops/Crochet.pm file bin bin di---- 378 cde_dt
  673. /usr/dt/share/backdrops/InlayColor.pm 0444 cde1/backdrops/InlayColor.pm file bin bin di---- 378 cde_dt
  674. /usr/dt/share/backdrops/InlayPlain.pm 0444 cde1/backdrops/InlayPlain.pm file bin bin di---- 378 cde_dt
  675. /usr/dt/share/backdrops/KnitLight.pm 0444 cde1/backdrops/KnitLight.pm file bin bin di---- 378 cde_dt
  676. /usr/dt/share/backdrops/Lattice.pm 0444 cde1/backdrops/Lattice.pm file bin bin di---- 378 cde_dt
  677. /usr/dt/share/backdrops/LatticeBig.pm 0444 cde1/backdrops/LatticeBig.pm file bin bin di---- 378 cde_dt
  678. /usr/dt/share/backdrops/Leaves.pm 0444 cde1/backdrops/Leaves.pm file bin bin di---- 378 cde_dt
  679. /usr/dt/share/backdrops/OldChars.pm 0444 cde1/backdrops/OldChars.pm file bin bin di---- 378 cde_dt
  680. /usr/dt/share/backdrops/Paver.pm 0444 cde1/backdrops/Paver.pm file bin bin di---- 378 cde_dt
  681. /usr/dt/share/backdrops/Pebbles.pm 0444 cde1/backdrops/Pebbles.pm file bin bin di---- 378 cde_dt
  682. /usr/dt/share/backdrops/PinStripe.pm 0444 cde1/backdrops/PinStripe.pm file bin bin di---- 378 cde_dt
  683. /usr/dt/share/backdrops/RakedSand.bm 0444 cde1/backdrops/RakedSand.bm file bin bin di---- 378 cde_dt
  684. /usr/dt/share/backdrops/RicePaper.pm 0444 cde1/backdrops/RicePaper.pm file bin bin di---- 378 cde_dt
  685. /usr/dt/share/backdrops/SkyDark.pm 0444 cde1/backdrops/SkyDark.pm file bin bin di---- 378 cde_dt
  686. /usr/dt/share/backdrops/SkyLight.pm 0444 cde1/backdrops/SkyLight.pm file bin bin di---- 378 cde_dt
  687. /usr/dt/share/backdrops/Sprinkles.pm 0444 cde1/backdrops/Sprinkles.pm file bin bin di---- 378 cde_dt
  688. /usr/dt/share/backdrops/Toronto.bm 0444 cde1/backdrops/Toronto.bm file bin bin di---- 378 cde_dt
  689. /usr/dt/share/backdrops/WaterDrops.pm 0444 cde1/backdrops/WaterDrops.pm file bin bin di---- 378 cde_dt
  690. /usr/dt/share/backdrops/Wooly.pm 0444 cde1/backdrops/Wooly.pm file bin bin di---- 378 cde_dt
  691. /usr/dt/backdrops 0444 /usr/dt/share/backdrops sym_link bin bin di---- 378 cde_dt
  692. /usr/dt/bin/dtfile_error 0555 cde1/dtfile/dtfile_error file bin bin di---- 378 cde_dt
  693. /usr/dt/bin/dtfile 0555 cde1/dtfile/dtfile file bin bin di---- 378 cde_dt
  694. /usr/dt/bin/dtfile_copy 0555 cde1/dtfile/dtcopy/dtfile_copy file bin bin di---- 378 cde_dt
  695. /usr/dt/bin/dtsession 04555 cde1/dtsession/dtsession file root bin di---- 378 cde_dt
  696. /usr/dt/bin/dtsession_res 0555 cde1/dtsession/dtloadresources file bin bin di---- 378 cde_dt
  697. /usr/dt/bin/dtwm 0555 cde1/dtwm/dtwm file bin bin di---- 378 cde_dt
  698. /usr/dt/bin/dtfplist 0555 cde1/dtwm/dtfplist file bin bin di---- 378 cde_dt
  699. /usr/dt/bin/dtlogin 0544 cde1/dtlogin/dtlogin file root bin di---- 378 cde_dt
  700. /usr/dt/bin/dtchooser 0544 cde1/dtlogin/dtchooser file root bin di---- 378 cde_dt
  701. /usr/dt/bin/dtgreet 0544 cde1/dtlogin/dtgreet file bin bin di---- 378 cde_dt
  702. /usr/dt/bin/hpterm 04555 /usr/bin/X11/hpterm sym_link root bin di---- 378 cde_dt
  703. /usr/dt/bin/dthello 0555 cde1/dthello/dthello file bin bin di---- 378 cde_dt
  704. /usr/dt/bin/dtaction 06555 cde1/dtaction/dtaction file root sys di---- 378 cde_dt
  705. /usr/dt/bin/dtpad 0555 cde1/dtpad/dtpad file bin bin di---- 378 cde_dt
  706. /usr/dt/bin/dtstyle 0555 cde1/dtstyle/dtstyle file bin bin di---- 378 cde_dt
  707. /usr/dt/bin/dtscreen 0555 cde1/dtscreen/dtscreen file bin bin di---- 378 cde_dt
  708. /usr/dt/bin/dticon 0555 cde1/dticon/dticon file bin bin di---- 378 cde_dt
  709. /usr/dt/bin/dtcalc 0555 cde1/dtcalc/dtcalc file bin bin di---- 378 cde_dt
  710. /usr/dt/bin/dtterm 04555 cde1/dtterm/dtterm file root bin di---- 378 cde_dt
  711. /usr/dt/config/dtterm.ti 0444 cde1/dtterm/dtterm.ti file bin bin di---- 378 cde_dt
  712. /usr/dt/bin/dtsearchpath 0555 cde1/dtsearchpath/dtsp/dtsp file bin bin di---- 378 cde_dt
  713. /usr/dt/bin/dtappgather 04555 cde1/dtappgather/dtappg file root bin di---- 378 cde_dt
  714. /usr/dt/bin/dttypes 0555 cde1/util/dttypes/dttypes file bin bin di---- 378 cde_dt
  715. /usr/dt/bin/dsdm 0555 cde1/dsdm/dsdm file bin bin di---- 378 cde_dt
  716. /usr/dt/bin/rpc.cmsd 0555 cde1/dtcm/server/rpc.cmsd file bin bin di---- 378 cde_dt
  717. /usr/dt/bin/dtcm 0555 cde1/dtcm/dtcm/dtcm file bin bin di---- 378 cde_dt
  718. /usr/dt/bin/dtcm_admin 0555 cde1/dtcm/dtcm/dtcm_admin file bin bin di---- 378 cde_dt
  719. /usr/dt/bin/dtcm_editor 0555 cde1/dtcm/dtcm/dtcm_editor file bin bin di---- 378 cde_dt
  720. /usr/dt/bin/dtcm_delete 0555 cde1/dtcm/dtcm/dtcm_delete file bin bin di---- 378 cde_dt
  721. /usr/dt/bin/dtcm_insert 0555 cde1/dtcm/dtcm/dtcm_insert file bin bin di---- 378 cde_dt
  722. /usr/dt/bin/dtcm_lookup 0555 cde1/dtcm/dtcm/dtcm_lookup file bin bin di---- 378 cde_dt
  723. /usr/dt/appconfig/types/C/dtcm.dt 0444 cde1/localized/C/types/dtcm.dt file bin bin di---- 378 cde_dt
  724. /usr/dt/app-defaults/C/Dtcm 0444 cde1/localized/C/app-defaults/Dtcm file bin bin di---- 378 cde_dt
  725. /usr/dt/bin/dtdspmsg 0555 cde1/dtdspmsg/dtdspmsg file bin bin di---- 378 cde_dt
  726. /usr/dt/bin/dtmail 02555 cde1/dtmail/dtmail/dtmail file bin mail di---- 378 cde_dt
  727. /usr/dt/bin/dtmailpr 02555 cde1/dtmail/dtmailpr/dtmailpr file bin mail di---- 378 cde_dt
  728. /usr/dt/bin/dtmailconv 0555 cde1/dtmail/mailconv/mailconv file bin bin di---- 378 cde_dt
  729. /usr/dt/appconfig/types/C/dtmail.dt 0444 cde1/localized/C/types/dtmail.dt file bin bin di---- 378 cde_dt
  730. /usr/dt/app-defaults/C/Dtmail 0444 cde1/localized/C/app-defaults/Dtmail file bin bin di---- 378 cde_dt
  731. /usr/dt/appconfig/types/C/dtwm.fp 0444 cde1/localized/C/types/dtwm.fp file bin bin di---- 378 cde_dt
  732. /usr/dt/appconfig/types/C/autoStart.dt 0444 cde1/localized/C/types/autoStart.dt file bin bin di---- 378 cde_dt
  733. /usr/dt/appconfig/types/C/uxstd.dt 0444 cde1/localized/C/types/uxstd.dt file bin bin di---- 378 cde_dt
  734. /usr/dt/appconfig/types/C/dt.dt 0444 cde1/localized/C/types/dt.dt file bin bin di---- 378 cde_dt
  735. /usr/dt/appconfig/types/C/develop.dt 0444 cde1/localized/C/types/develop.dt file bin bin di---- 378 cde_dt
  736. /usr/dt/appconfig/types/C/datatypes.dt 0444 cde1/localized/C/types/datatypes.dt file bin bin di---- 378 cde_dt
  737. /usr/dt/appconfig/types/C/dtappman.dt 0444 cde1/localized/C/types/dtappman.dt file bin bin di---- 378 cde_dt
  738. /usr/dt/appconfig/types/C/dtfile.dt 0444 cde1/localized/C/types/dtfile.dt file bin bin di---- 378 cde_dt
  739. /usr/dt/appconfig/types/C/dtpad.dt 0444 cde1/localized/C/types/dtpad.dt file bin bin di---- 378 cde_dt
  740. /usr/dt/appconfig/types/C/xclients.dt 0444 cde1/localized/C/types/xclients.dt file bin bin di---- 378 cde_dt
  741. /usr/dt/appconfig/types/C/print.dt 0444 cde1/localized/C/types/print.dt file bin bin di---- 378 cde_dt
  742. /usr/dt/appconfig/types/C/user-prefs.dt 0444 cde1/localized/C/types/user-prefs.dt file bin bin di---- 378 cde_dt
  743. /usr/dt/appconfig/types/C/dthelp.dt 0444 cde1/localized/C/types/dthelp.dt file bin bin di---- 378 cde_dt
  744. /usr/dt/appconfig/types/C/dtscreen.dt 0444 cde1/localized/C/types/dtscreen.dt file bin bin di---- 378 cde_dt
  745. /usr/dt/share/examples/types/C/IconBrowse.dt 0444 cde1/localized/C/types/IconBrowse.dt file bin bin di---- 378 cde_dt
  746. /usr/dt/share/examples/types/C/miscActions.dt 0444 cde1/localized/C/types/miscActions.dt file bin bin di---- 378 cde_dt
  747. /usr/dt/share/examples/types/C/miscImages.dt 0444 cde1/localized/C/types/miscImages.dt file bin bin di---- 378 cde_dt
  748. /usr/dt/bin/dterror.ds 0555 cde1/localized/C/types/error.ds file bin bin di---- 378 cde_dt
  749. /usr/dt/bin/xmbind 0555 osf/xmbind/xmbind file bin bin di---- 378 cde_dt
  750. /usr/dt/lib/bindings/xmbind.alias 0444 lib/Xm/bindings/xmbind.alias file bin bin di---- 378 cde_dt
  751. /usr/dt/lib/bindings/acorn 0444 lib/Xm/bindings/acorn file bin bin di---- 378 cde_dt
  752. /usr/dt/lib/bindings/apollo 0444 lib/Xm/bindings/apollo file bin bin di---- 378 cde_dt
  753. /usr/dt/lib/bindings/dec 0444 lib/Xm/bindings/dec file bin bin di---- 378 cde_dt
  754. /usr/dt/lib/bindings/dg_AViiON 0444 lib/Xm/bindings/dg_AViiON file bin bin di---- 378 cde_dt
  755. /usr/dt/lib/bindings/doubleclick 0444 lib/Xm/bindings/doubleclick file bin bin di---- 378 cde_dt
  756. /usr/dt/lib/bindings/hitachi 0444 lib/Xm/bindings/hitachi file bin bin di---- 378 cde_dt
  757. /usr/dt/lib/bindings/hp 0444 lib/Xm/bindings/hp file bin bin di---- 378 cde_dt
  758. /usr/dt/lib/bindings/ibm 0444 lib/Xm/bindings/ibm file bin bin di---- 378 cde_dt
  759. /usr/dt/lib/bindings/intergraph 0444 lib/Xm/bindings/intergraph file bin bin di---- 378 cde_dt
  760. /usr/dt/lib/bindings/intergraph17 0444 lib/Xm/bindings/intergraph17 file bin bin di---- 378 cde_dt
  761. /usr/dt/lib/bindings/megatek 0444 lib/Xm/bindings/megatek file bin bin di---- 378 cde_dt
  762. /usr/dt/lib/bindings/motorola 0444 lib/Xm/bindings/motorola file bin bin di---- 378 cde_dt
  763. /usr/dt/lib/bindings/ncr_at 0444 lib/Xm/bindings/ncr_at file bin bin di---- 378 cde_dt
  764. /usr/dt/lib/bindings/ncr_vt 0444 lib/Xm/bindings/ncr_vt file bin bin di---- 378 cde_dt
  765. /usr/dt/lib/bindings/sgi 0444 lib/Xm/bindings/sgi file bin bin di---- 378 cde_dt
  766. /usr/dt/lib/bindings/siemens_9733 0444 lib/Xm/bindings/siemens_9733 file bin bin di---- 378 cde_dt
  767. /usr/dt/lib/bindings/siemens_wx200 0444 lib/Xm/bindings/siemens_wx200 file bin bin di---- 378 cde_dt
  768. /usr/dt/lib/bindings/sony 0444 lib/Xm/bindings/sony file bin bin di---- 378 cde_dt
  769. /usr/dt/lib/bindings/sun 0444 lib/Xm/bindings/sun file bin bin di---- 378 cde_dt
  770. /usr/dt/lib/bindings/tek 0444 lib/Xm/bindings/tek file bin bin di---- 378 cde_dt
  771. /usr/dt/config/Xsession.d/0040.xmbind 0444 osf/xmbind/0040.xmbind file bin bin di---- 378 cde_dt
  772. /usr/dt/examples 0444 /usr/dt/share/examples sym_link bin bin di---- 378 cde_dt
  773. EOF
  774. }
  775. HandleOption()
  776. {
  777. while [ $# -ne 0 ]; do
  778. case $1 in
  779. -e) OPERATION="configure"
  780. shift;
  781. ;;
  782. -d) OPERATION="deconfigure"
  783. shift;
  784. ;;
  785. -v) OPERATION="verify"
  786. shift;
  787. ;;
  788. -s) OPERATION="size"
  789. shift;
  790. ;;
  791. esac
  792. done
  793. }
  794. doDttermTerminfo()
  795. {
  796. if [ -f $DT_TOP/config/dtterm.ti ]
  797. then
  798. tic $DT_TOP/config/dtterm.ti
  799. if [ -f /usr/lib/terminfo/d/dtterm ]
  800. then
  801. chown bin /usr/lib/terminfo/d/dtterm
  802. chgrp bin /usr/lib/terminfo/d/dtterm
  803. chmod 444 /usr/lib/terminfo/d/dtterm
  804. else
  805. echo "Unable to compile $DT_TOP/config/dtterm.ti"
  806. fi
  807. else
  808. echo "Unable to find $DT_TOP/config/dtterm.ti"
  809. fi
  810. }
  811. #############################################################################
  812. #
  813. # Main Body
  814. #
  815. ##############################################################################
  816. PRODUCT=CDE
  817. FILESET=CDE-RUN
  818. DT_TOP=/usr/dt
  819. DT_CONFIG_TOP=/etc/dt
  820. DT_TEMP_TOP=/var/dt
  821. ROOT=/
  822. DO_CONFIGURATION=""
  823. retval=0
  824. APPCONFIG=appconfig
  825. APPCONFIG_DIRS="appmanager help icons types"
  826. PRINTERS=""
  827. DEFAULT_PRINTER="DtPrint"
  828. HandleOption $*
  829. if [ "$OPERATION" = "configure" ]
  830. then
  831. echo "Configuring for CDE-RUN..."
  832. #
  833. # create the /var/dt directory
  834. #
  835. if [ ! -d $DT_TEMP_TOP/$APPCONFIG/appmanager ]
  836. then
  837. mkdir -p $DT_TEMP_TOP/$APPCONFIG/appmanager
  838. fi
  839. cd $DT_TEMP_TOP
  840. mv $APPCONFIG/appmanager .hidden-appmanager
  841. chmod -R 755 *
  842. chmod 755 .hidden-appmanager
  843. chown -R bin *
  844. chgrp -R bin *
  845. mv .hidden-appmanager $APPCONFIG/appmanager
  846. chmod 755 .
  847. chown bin .
  848. chgrp bin .
  849. #
  850. # create the /etc/dt and its config directory
  851. #
  852. umask 022
  853. if [ ! -d $DT_CONFIG_TOP ]
  854. then
  855. mkdir -p $DT_CONFIG_TOP
  856. chmod 755 $DT_CONFIG_TOP
  857. fi
  858. if [ ! -d $DT_CONFIG_TOP/config ]
  859. then
  860. mkdir -p $DT_CONFIG_TOP/config
  861. fi
  862. CreateAppConfigDirectory
  863. #
  864. # ConfigurePrintersDir
  865. #
  866. env LANG=C /usr/dt/bin/dtprintinfo -populate
  867. #
  868. # Configure Xsession.d
  869. #
  870. cd $DT_CONFIG_TOP/config
  871. if [ ! -d Xsession.d ]
  872. then
  873. mkdir Xsession.d
  874. fi
  875. cd $DT_CONFIG_TOP
  876. chmod -R 755 *
  877. FixInetdDotConf
  878. FixEtcRpc
  879. # After adding the Calendar Manager to the inetd service list, the inet
  880. # daemon needs to reread its configuration.
  881. /etc/inetd -c
  882. doDttermTerminfo
  883. elif [ "$OPERATION" = "deconfigure" ]
  884. then
  885. echo "de-Configuring CDE-RUN..."
  886. /etc/inetd -k
  887. KillIt "rpc.cmsd"
  888. /etc/inetd
  889. UnfixInetdDotConf
  890. UnfixEtcRpc
  891. # After removing the Calendar Manager from the inetd service list, the
  892. # inet daemon needs to reread its configuration.
  893. /etc/inetd -c
  894. rm -f /usr/lib/terminfo/d/dtterm
  895. rm -rf $DT_TEMP_TOP/*
  896. RemoveRunFiles
  897. VerifyInstalledFiles
  898. elif [ "$OPERATION" = "verify" ]
  899. then
  900. VerifyInstalledFiles
  901. fi
  902. return $retval