Lines Matching refs:rootdir
28 rootdir="/var/unbound"
41 [ -d ${rootdir}/etc ] || mkdir -p ${rootdir}/etc ;
42 if [ ! -e ${rootdir}/etc/localtime ] || ! /usr/bin/cmp -s /etc/localtime ${rootdir}/etc/localtime; then
43 cp -fp /etc/localtime ${rootdir}/etc/localtime
47 [ -d ${rootdir}/etc ] || mkdir -p ${rootdir}/etc ;
48 if [ ! -e ${rootdir}/etc/resolv.conf ] || ! /usr/bin/cmp -s /etc/resolv.conf ${rootdir}/etc/resolv.conf; then
49 cp -fp /etc/resolv.conf ${rootdir}/etc/resolv.conf
52 if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/log' /proc/mounts; then
53 [ -d ${rootdir}/dev ] || mkdir -p ${rootdir}/dev ;
54 [ -e ${rootdir}/dev/log ] || touch ${rootdir}/dev/log
55 mount --bind -n /dev/log ${rootdir}/dev/log >/dev/null 2>&1;
57 if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then
58 [ -d ${rootdir}/dev ] || mkdir -p ${rootdir}/dev ;
59 [ -e ${rootdir}/dev/random ] || touch ${rootdir}/dev/random
60 mount --bind -n /dev/random ${rootdir}/dev/random >/dev/null 2>&1;
79 if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/log' /proc/mounts; then
80 umount ${rootdir}/dev/log >/dev/null 2>&1
82 if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then
83 umount ${rootdir}/dev/random >/dev/null 2>&1