|
|
Autostart Apple's Internet Sharing on startup (cont.)
Until recently, everything worked fine, but then it stopped (maybe due to system updates 10.2.3 or 10.2.4).
A tad more elegant solution using patch
I struggled quite a bit to make this work. The first problem was that there appeared backslashes before every quote in the scripts in /Library/StartupItems/ISharing directory for some odd reason (copy in Safari paste in Vim?). You can make sure there are no syntax errors in the scripts by issuing command: The -n option is for "don't actually perform action on items (no-run mode)". Option -d is debug, which gives you a more detailed output. Secondly, as the previous poster wrote, newer versions of Jaguar (I'm using 10.2.8 now) will overwrite the file /var/db/SystemConfiguration/com.apple.nat.xml on startup to indicate that the Internet Sharing is not enabled. In order to enable Internet Sharing at startup, you must change the file in startup script to indicate that Internet Sharing should be enabled. I did this by using diff and patch like this:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|