1 # Ownerships and permissions
3 chown root:games usr/games usr/share/games usr/local/games var/games
5 chown root:mail var/mail
6 chown root:lp var/spool/lpd
7 chown root:news var/spool/news
12 # Force the symbolic link to make /var/run and /var/lock point to /run
23 chmod 775 usr/games usr/share/games usr/local/games var/games
25 # Create character special files, if needed
26 test -c dev/console || mknod -m 600 dev/console c 5 1
27 test -c dev/null || mknod -m 666 dev/null c 1 3
29 # Create shm directory if does not exist
30 test -e dev/shm || mkdir -p dev/shm
32 # Create file records for logins and logouts
33 touch var/log/btmp var/log/lastlog var/log/faillog var/log/wtmp \
36 chgrp utmp var/log/lastlog var/run/utmp
37 chmod 664 var/log/lastlog var/run/utmp
38 chmod 600 var/log/btmp
40 # Make symlinks at 'rootdir'
42 for link in bin lib sbin
46 ln -sf usr/${link} $link
58 ln -sf share/info info
62 cd usr/share || exit 1
63 ln -sf ../lib/pkgconfig pkgconfig
66 cd usr/local || exit 1
68 ln -sf share/info info
72 cd usr/local/share || exit 1
73 ln -sf ../lib/pkgconfig pkgconfig
76 cd var/spool || exit 1
80 # Offer X11R6 compatibility symlink.
81 ln -sf /usr /usr/X11R6
85 if test "$libSuffix" != X
87 if test ! -e usr/lib${libSuffix}
91 rmdir lib/pkgconfig lib/ 2> /dev/null
93 mkdir -p lib${libSuffix}
94 ln -s -f lib${libSuffix} lib
97 if test ! -e usr/local/lib${libSuffix}
100 cd usr/local || exit 1
101 rmdir lib/pkgconfig lib/ 2> /dev/null
103 mkdir -p lib${libSuffix}
104 ln -s -f lib${libSuffix} lib
108 # Re-create pkgconfig directory
110 mkdir -p usr/lib/pkgconfig usr/local/lib/pkgconfig
113 ln -s usr/lib${libSuffix} lib