Skip to content

Commit 5bcdf65

Browse files
author
ligl
committed
add start/stop py-files
0 parents  commit 5bcdf65

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

start_proxy.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python3.6
2+
#coding=utf-8
3+
import os
4+
if os.path.isfile('/etc/profile.d/proxy.txt'):
5+
os.rename('/etc/profile.d/proxy.txt','/etc/profile.d/proxy.sh')
6+
os.system('source /etc/profile')

stop_proxy.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python3.6
2+
#coding:utf-8
3+
import os
4+
if os.path.isfile('/etc/profile.d/proxy.sh'):
5+
os.rename('/etc/profile.d/proxy.sh','/etc/profile.d/proxy.txt')
6+
os.system('source /etc/profile')

0 commit comments

Comments
 (0)