Skip to content
Newer
Older
100755 23 lines (18 sloc) 619 Bytes
dcd7811 @thatandromeda script to change SSID
thatandromeda authored
1 #!/usr/bin/env python
2 from os import remove, rename
3
4 def alter_SSID():
5 """
6 customize the SSID for Librarybox
7 """
8 source = open('/etc/config/wireless', 'r')
9 destination = open('/etc/config/wireless_new', 'w')
10
11 for line in source:
12 if (line.find('PirateBox - Share Freely') > -1):
13 line = line.replace('PirateBox - Share Freely', 'LibraryBox - Free Content!')
14 destination.write(line)
15
16 source.close()
17 destination.close()
18
19 remove('/etc/config/wireless')
20 rename('/etc/config/wireless_new', '/etc/config/wireless')
21
22 if __name__=="__main__":
23 alter_SSID()
Something went wrong with that request. Please try again.