summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-10-21 07:45:48 +0000
committerAlin Năstac <mrness@gentoo.org>2006-10-21 07:45:48 +0000
commit7e9df2411fedb36946f61d34907d7132576f1dea (patch)
treec53a97a35e2b26efb604952c2cb05b7dd65a4fe4 /net-dialup/freeradius/files
parentFix typo in init script (#152191). Stable on x86 and amd64. (diff)
downloadgentoo-2-7e9df2411fedb36946f61d34907d7132576f1dea.tar.gz
gentoo-2-7e9df2411fedb36946f61d34907d7132576f1dea.tar.bz2
gentoo-2-7e9df2411fedb36946f61d34907d7132576f1dea.zip
create /var/run/radiusd directory if not exist
(Portage version: 2.1.1)
Diffstat (limited to 'net-dialup/freeradius/files')
-rw-r--r--net-dialup/freeradius/files/radius.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/net-dialup/freeradius/files/radius.init b/net-dialup/freeradius/files/radius.init
index dbbb527c8ed8..75392c846058 100644
--- a/net-dialup/freeradius/files/radius.init
+++ b/net-dialup/freeradius/files/radius.init
@@ -14,7 +14,7 @@ checkconfig() {
return 1
fi
- if [[ ! -d /var/run/radiusd ]] ; then
+ if [[ ! -d /var/run/radiusd ]] && ! mkdir /var/run/radiusd ; then
eerror "Failed to create /var/run/radiusd"
return 1
fi