Слово
«pppdir»впервые сказано пользователем
ln(x) 19.10.2010 в 02:42,
и с тех пор употреблялось
11 раз.
Сообщения со словом
«pppdir»
Запрос выполнился за
0.0009 сек.
- 19.10.2010, 02:42. ln(x) в теме
«Линукс и мелкомягкие»
... -a-za-z0-9 s my unsafe re safe set my safe re safe set pppdir the directory containing the ppp config files my pppdir env pppdir die stop screwing with me and set pppdir to something reasonable n if defined pppdir pppdir unsafe re o pppdir etc ppp unless defined pppdir pptpdir the directory containing the pptp drop-in config files my pptpdir env pptpdir die stop screwing with me and set pptpdir to something reasonable n if defined pptpdir pptpdir unsafe re o pptpdir etc pptp d unless defined pptpdir chap secrets the full path to the the chap challenge handshake authentication protocol secrets file my chap secrets pppdir chap-secrets my pap secrets pppdir pap-secrets tunnel dir the directory containing tunnel config files my tunnel dir pppdir peers subsys dir the place rc looks to see if a servics is started before it runs the k scripts my subsys dir var lock subsys the resolv confs my resolv etc resolv conf my resolv pptp resolv pptp my resolv real resolv real clean up the path since this is run as root env path bin usr bin usr sbin delete env bash env delete env ifs delete env env sub usage print usage 0 setup stop start tunnel n print all options must be specified to run non-interactively n exit 1 first some support functions that are used everywhere yesno prompt ask the user prompt and return true for yes false for no sub yesno my prompt 0 while 1 print n prompt y n my choice stdin chomp choice return 1 if choice eq choice yy return 0 if choice nn print ni don t understand choice please try again n queryuser prompt default ask the user prompt and return the answer default if cr sub queryuser my prompt default print prompt print default if defined default print my answer stdin chomp answer answer default if answer eq and defined default return answer configuredtunnels returns a list of configured tunnels sub configuredtunnels my tunnels if -d tunnel dir foreach my f cd tunnel dir ls chomp f next if f eq default my p tunnel dir f if p safe re o print unsafe characters in tunnel name p n next p 1 push tunnels f if -f p and grep pptp p return tunnels bselect a rough equilivent of the bourne shell s select sub bselect my prompt shift my choices for my i 0 choices print i 1 choices i n my reply queryuser prompt undef return reply selecttunnel interactive prints 0 as a prompt and returns the choice sub selecttunnel my tunnel my tunnels configuredtunnels while tunnel eq tunnel bselect 0 tunnels return tunnels tunnel 1 if tunnel d return tunnel if grep tunnel tunnels return addtunnel name ip local remote adds a new tunnel with name name server ip address ip and using the chap secret determined by local name local and remote name remote sub addtunnel my name ip local remote routes if -f tunnel dir name print error peer name already exists n return open peer tunnel dir name or die can t open tunnel dir name for writing print peer pptp tunnel configuration for tunnel name server ip ip n foreach my r routes print peer route r n print peer tags for chap secret selection name local remotename remote tunnel name for ip-up local or ip-up d scripts ipparam name include the main pptp configuration file file pppdir options pptp close peer or die can t close tunnel...