From: Maxim Mamontov Date: Fri, 25 Feb 2011 10:05:29 +0000 (+0200) Subject: Shabang added to example scripts X-Git-Tag: 2.407-rc3~165 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/1f919fd581b0db336db0fc4840bc806ac9b2c4c8?ds=sidebyside;hp=-c Shabang added to example scripts --- 1f919fd581b0db336db0fc4840bc806ac9b2c4c8 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