Difference between revisions of "Novacomd Init Script"

From WebOS Internals
Jump to navigation Jump to search
(Replaced content with 'See http://www.webos-internals.org/wiki/Accessing_Linux_Debian')
(Do not remove this entry)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
See http://www.webos-internals.org/wiki/Accessing_Linux_Debian
+
<source lang="bash">
 +
#!/sbin/runscript
 +
 
 +
start() {
 +
        ebegin "Starting novacomd"
 +
        start-stop-daemon --start --background --exec /opt/Palm/novacom/novacomd
 +
        result=$?
 +
        eend $result
 +
}
 +
 
 +
stop() {
 +
        ebegin "Stopping novacomd"
 +
        start-stop-daemon --stop --quiet --exec /opt/Palm/novacom/novacomd
 +
        result=$?
 +
        eend $result
 +
}
 +
</source>

Latest revision as of 23:18, 10 March 2011

<source lang="bash">

  1. !/sbin/runscript

start() {

       ebegin "Starting novacomd"
       start-stop-daemon --start --background --exec /opt/Palm/novacom/novacomd
       result=$?
       eend $result

}

stop() {

       ebegin "Stopping novacomd"
       start-stop-daemon --stop --quiet --exec /opt/Palm/novacom/novacomd
       result=$?
       eend $result

} </source>