rc.subr (160666) | rc.subr (160667) |
---|---|
1# $NetBSD: rc.subr,v 1.66 2006/04/01 10:05:50 he Exp $ | 1# $NetBSD: rc.subr,v 1.66 2006/04/01 10:05:50 he Exp $ |
2# $FreeBSD: head/etc/rc.subr 160666 2006-07-25 17:10:35Z yar $ | 2# $FreeBSD: head/etc/rc.subr 160667 2006-07-25 17:14:38Z yar $ |
3# 4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 597 unchanged lines hidden (view full) --- 608 609 start) 610 if [ -z "$rc_fast" -a -n "$rc_pid" ]; then 611 echo 1>&2 "${name} already running? (pid=$rc_pid)." 612 return 1 613 fi 614 615 if [ ! -x ${_chroot}${command} ]; then | 3# 4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 597 unchanged lines hidden (view full) --- 608 609 start) 610 if [ -z "$rc_fast" -a -n "$rc_pid" ]; then 611 echo 1>&2 "${name} already running? (pid=$rc_pid)." 612 return 1 613 fi 614 615 if [ ! -x ${_chroot}${command} ]; then |
616 info "run_rc_command: cannot run ($command)." | 616 warn "run_rc_command: cannot run $command" |
617 return 1 618 fi 619 620 # check for required variables, 621 # directories, and files 622 # 623 for _f in $required_vars; do 624 if ! checkyesno $_f; then --- 511 unchanged lines hidden (view full) --- 1136 linkdir="`dirname $link`" 1137 _me="make_symlink()" 1138 1139 if [ -z "$src" -o -z "$link" ]; then 1140 warn "$_me: requires two arguments." 1141 return 1 1142 fi 1143 if [ ! -d "$linkdir" ]; then | 617 return 1 618 fi 619 620 # check for required variables, 621 # directories, and files 622 # 623 for _f in $required_vars; do 624 if ! checkyesno $_f; then --- 511 unchanged lines hidden (view full) --- 1136 linkdir="`dirname $link`" 1137 _me="make_symlink()" 1138 1139 if [ -z "$src" -o -z "$link" ]; then 1140 warn "$_me: requires two arguments." 1141 return 1 1142 fi 1143 if [ ! -d "$linkdir" ]; then |
1144 warn "$_me: the directory $linkdir does not exist" | 1144 warn "$_me: the directory $linkdir does not exist." |
1145 return 1 1146 fi 1147 if ! ln -sf $src $link; then 1148 warn "$_me: unable to make a symbolic link from $link to $src" 1149 return 1 1150 fi 1151 return 0 1152} --- 360 unchanged lines hidden --- | 1145 return 1 1146 fi 1147 if ! ln -sf $src $link; then 1148 warn "$_me: unable to make a symbolic link from $link to $src" 1149 return 1 1150 fi 1151 return 0 1152} --- 360 unchanged lines hidden --- |