This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
nslu2_install_owfs [2011/01/29 22:35] jap |
nslu2_install_owfs [2011/01/30 00:40] jap |
||
---|---|---|---|
Line 18: | Line 18: | ||
# make install | # make install | ||
- | 5. Create startup script ''/etc/init.d/owfs'' | + | 5. Create mount point for owfs |
+ | # mkdir /mnt/1wire | ||
- | #!/bin/sh | + | 6. Create startup script ''/etc/init.d/owfs'' to start owfs automatically on system boot |
- | + | ||
- | casee "$1" in | + | #!/bin/sh |
- | start) | + | |
- | /opt/owfs/bin/owserver -u -p 3000 | + | case "$1" in |
- | /opt/owfs/bin/owhttpd -u -p 3001 | + | start) |
- | /opt/owfs -u -m /mnt/1wire | + | /opt/owfs/bin/owfs -u -m /mnt/1wire |
- | ;; | + | ;; |
- | *) | + | *) |
- | echo "Usage: /etc/init.d/owfs {start} | + | echo "Usage: /etc/init.d/owfs {start}" |
- | ;; | + | ;; |
- | esac | + | esac |
- | + | ||
exit 0 | exit 0 | ||
- | 6. Create startup link | + | |
+ | 7. Create startup link | ||
# ln -s /etc/init.d/owfs /etc/rc2.d/S99owfs | # ln -s /etc/init.d/owfs /etc/rc2.d/S99owfs | ||
6. Now you can start your service ''/etc/init.d/owfs start'' | 6. Now you can start your service ''/etc/init.d/owfs start'' |