Permalink
Browse files

copied alter_ssid.py as branch

  • Loading branch information...
1 parent 90b72d2 commit 0b65359517c2c7fb9947b7d63056c0457cf8d4b4 @griffey committed Sep 5, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 LibraryBox 1.5/librarybox_edits.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()
+
+ rename('/etc/config/wireless', '/etc/config/wireless_old')
+ rename('/etc/config/wireless_new', '/etc/config/wireless')
+
+if __name__=="__main__":
+ alter_SSID()

0 comments on commit 0b65359

Please sign in to comment.