Skip to content
Browse files

script to change SSID

  • Loading branch information...
1 parent 907ca04 commit dcd7811ce4ccc9758ed45d0a20c272647c7f682d @thatandromeda thatandromeda committed Aug 31, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 LibraryBox 1.5/alter_SSID.py
View
23 LibraryBox 1.5/alter_SSID.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+from os import remove, rename
+
+def alter_SSID():
+ """
+ customize the SSID for Librarybox
+ """
+ source = open('/etc/config/wireless', 'r')
+ destination = open('/etc/config/wireless_new', 'w')
+
+ for line in source:
+ if (line.find('PirateBox - Share Freely') > -1):
+ line = line.replace('PirateBox - Share Freely', 'LibraryBox - Free Content!')
+ destination.write(line)
+
+ source.close()
+ destination.close()
+
+ remove('/etc/config/wireless')
+ rename('/etc/config/wireless_new', '/etc/config/wireless')
+
+if __name__=="__main__":
+ alter_SSID()

0 comments on commit dcd7811

Please sign in to comment.
Something went wrong with that request. Please try again.