📄 install
字号:
pppd has several opportunities for shelling out.From command line:1) pppd can call a script to initialize a device. To audit this aspect typethis:pppd /dev/modem init full_path/env_audit2) pppd can also run a script to perform the connection in place of chat. To audit this aspect, type the following:pppd /dev/modem connect full_path/env_auditFrom ifup-ppp script:3) pppd can also call a script to perform the disconnection if a session is established. ( ifdown ppp0 ). To perform this audit, you will need to edit the/etc/sysconfig/network-scripts/ifup-ppp file. At the very end of the script,you will find: exec pppd ... Just add: disconnect full_path/env_auditto the pppd execution command. To trigger the audit, do a 'ifup ppp0' and thena 'ifdown ppp0'.4) pppd can also run a welcome script after ifup ppp0 has been exec'd. To audit this, go to the very end of the ifup-ppp script, and add this:welcome full_path/env_auditTo trigger the audit, just do a 'ifup ppp0'.5) And finally, pppd can use an external program rather than a specific terminal device to communicate. To audit this, you will need to go to the endof the ifup-ppp script and add:pty full_path/env_auditTo trigger the audit, just do a 'ifup ppp0'.The results of all these audits will be placed into /tmp/env_audit.log. Youwill also want to do these audits one at a time to avoid over-writing results.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -