Lines Matching refs:dir
72 typeset dir="$1"
81 if [[ ! -e $dir/$x ]]; then
82 log "$f_sanity_detail" "$x" "$dir"
89 if [[ ! -e $dir/$x ]]; then
90 log "$f_sanity_detail" "$x" "$dir"
110 if [[ -f $dir/var/sadm/system/admin/INST_RELEASE ]]; then
112 $dir/var/sadm/system/admin/INST_RELEASE)
130 for i in $dir/var/sadm/pkg/SUNWcakr*
142 for i in $dir/var/sadm/pkg/SUNWcakr*/pkginfo
168 if [[ -f $dir/$VERS_FILE ]]; then
169 s10vers_needs=$(/usr/bin/egrep -v "^#" $dir/$VERS_FILE)
368 typeset dir="$1"
373 "$dir"
375 [[ -z "$dir" ]] && fail_internal "$f_int_missing_arg" "dir"
376 [[ -d "$dir" ]] || fail_internal "'%s' is not a directory" "$dir"
380 # "mv $dir/root/* $dir/root" when $dir/root/root exists. Really,
383 # event of a collision between $newroot and a file in $dir/root, a
387 newroot=$(mktemp -d "$dir/attach.XXXXXX") || {
388 error "$e_tmpdir" "$dir/attach.XXXXXX"
396 mv "$dir/root" "$newroot" || {
397 error "$e_mv" "$dir/root" "$newroot"
401 for file in "$dir"/* "$dir"/.* ; do
408 vlog "Removing '%s' from zonepath" "${file#$dir/}"
418 mv "$file" "$dir" || {
419 error "$e_mv" "$file" "$dir"
424 # $dir was previously a zonepath with permissions of 700.
425 chown root:sys "$dir" || {
426 error "$f_chown" "$dir"
429 chmod 755 "$dir" || {
430 error "$f_chmod" "$dir"