From 1f919fd581b0db336db0fc4840bc806ac9b2c4c8 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Fri, 25 Feb 2011 12:05:29 +0200 Subject: [PATCH] Shabang added to example scripts --- .../stargazer/scripts/shaper_vpn_radius/stargazer/OnChange | 4 +++- .../stargazer/scripts/shaper_vpn_radius/stargazer/OnUserAdd | 2 ++ .../stargazer/scripts/shaper_vpn_radius/stargazer/OnUserDel | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnChange b/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnChange index a9272287..6d99f173 100755 --- a/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnChange +++ b/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnChange @@ -1,6 +1,8 @@ +#! /bin/sh + login=$1 param=$2 oldValue=$3 newValue=$4 -#echo "User: '$login'. Parameter $param changed from '$oldValue' to '$newValue'" >> /var/stargazer/users.chg.log \ No newline at end of file +#echo "User: '$login'. Parameter $param changed from '$oldValue' to '$newValue'" >> /var/stargazer/users.chg.log diff --git a/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnUserAdd b/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnUserAdd index a3ee3a9f..22d321cc 100755 --- a/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnUserAdd +++ b/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnUserAdd @@ -1,3 +1,5 @@ +#! /bin/sh + # Использование (неиспользование) этого скрипта дело вкуса. # Он не выполняет критических функций. Его задача автматизировать # действия характерные при добавлении пользователя сети, например добавлекние diff --git a/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnUserDel b/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnUserDel index 3be6046e..248e5b36 100755 --- a/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnUserDel +++ b/projects/stargazer/scripts/shaper_vpn_radius/stargazer/OnUserDel @@ -1,3 +1,5 @@ +#! /bin/sh + # Login login=$1 -- 2.44.2