Changeset 28968


Ignore:
Timestamp:
2011-11-12T02:30:27+01:00 (6 years ago)
Author:
nico
Message:

packages/scmpc: use new service functions

Location:
packages/sound/scmpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/sound/scmpc/Makefile

    r25362 r28968  
    11# 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=scmpc 
    1111PKG_VERSION:=0.2.2 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/sound/scmpc/files/scmpc.init

    r9981 r28968  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=94 
    45 
     6SERVICE_USE_PID=1 
     7 
    58start() { 
    6         mkdir -p /var/lib/scmpc 
    7         /usr/bin/scmpc 
     9        mkdir -m 0755 -p /var/lib/scmpc 
     10        service_start /usr/bin/scmpc 
    811} 
    912 
    1013stop() { 
    11         killall scmpc 
     14        service_stop /usr/bin/scmpc 
    1215} 
Note: See TracChangeset for help on using the changeset viewer.