[OpenWrt-Devel] [PATCH] Wrong baud for Geos
The default baudrate in BIOS for the Geos is 115200. --- Index: target/linux/x86/image/Config.in === --- target/linux/x86/image/Config.in(revision 23390) +++ target/linux/x86/image/Config.in(working copy) @@ -20,7 +20,8 @@ config X86_GRUB_BAUDRATE int "Serial port baud rate" depends X86_GRUB_IMAGES - default 19200 if TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos + default 19200 if TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 + default 115200 if TARGET_x86_geos default 38400 config X86_GRUB_BOOTOPTS ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Question about package dependencies
On Thu, 2010-10-07 at 08:05 -0600, Alan Post wrote: > This is very useful, thank you mirko. > > Should I include depends on things like libc? I notice there is a > variable called PKG_BUILD_DEPENDS. I've seen it used for host-side > compilation of the same package. A package I'm working on also > needs bison and flex and build-time dependencies. Is it appropriate > to put those in PKG_BUILD_DEPENDS? As long as these are not dependencies while running, PKG_BUILD_DEPENDS is appropriate. DEPENDS = X # depends on X while building/compiling and running PKG_BUILD_DEPENDS = X # depends on X while building/compiling The latter one is mostly used when host tools are only needed while compiling, which are compiled/built and referenced by other (host)packages. mirko > > -Alan > > On Thu, Oct 07, 2010 at 03:56:20PM +0200, Mirko Vogt wrote: > > Hey Alan, > > > > let's imagine we have a Makefile/port/package called , and the > > following within the respective Makefile: > > > > DEPENDS:=bar # package will be only selectable, if is > > selected > > > > DEPENDS:=+bar # will be always selectable and - if selected - is > > going to select automatically as dependency > > > > Greetings > > > > mirko > > > > > > On Mon, 2010-10-04 at 15:05 -0600, Alan Post wrote: > > > coi ro do, > > > > > > Last month I purchased a Ben NanoNote and began working on porting > > > packages and understanding how OpenWrt works. > > > > > > I have commit access to qi-hardware's repository, but this > > > repository mostly serves to track OpenWrt's backfire and trunk > > > branches. > > > > > > I have a question about packages and dependencies in OpenWrt, based > > > on what I have observed. > > > > > > I see that a package may list what it depends on. I don't think > > > this dependency is checked if you enable a package in make > > > menuconfig. If you enable a package but don't enable the > > > dependencies, the package will be skipped. > > > > > > Is this true? I still feel like I'm getting myself oriented in > > > using OpenWrt, so please excuse what may be a basic question.=20 > > > > > > Thank you, > > > > > > -Alan > > > > > > > > -- > > This email address is used for mailinglist purposes only. > > Non-mailinglist emails will be dropped automatically. > > If you want to get in contact with me personally, please mail to: > > mirko.vogt nanl de > > > > ___ > > openwrt-devel mailing list > > openwrt-devel@lists.openwrt.org > > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > -- This email address is used for mailinglist purposes only. Non-mailinglist emails will be dropped automatically. If you want to get in contact with me personally, please mail to: mirko.vogt nanl de ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Debug rules for interrogating Makefile values
I committed a modified version in r23389 - thanks. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Resend: [Patch v2] Geos -- new x86 subtarget definition
Committed in r23390 - thanks. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Fix for bcm47xx watchdog on bcm5354
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 04.10.2010 22:48, Aleksandar Radovanovic wrote: > Would appreciate if people could give it a quick test on other chips and > report if it's still not working for them. > Any news on this? I really think that this patch should be merged into trunk as soon as possible - working hw watchdog is a must for production-class environments. - -- Best regards, Alexey Loukianov mailto:mooro...@mail.ru System Engineer,Mob.:+7(926)218-1320 *nix Specialist -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMskAtAAoJEPB9BOdTkBULfDUIALARa+mnHCLCdiHIA10YcmG1 gGdqFcmzp+41zYdN8qG86JslMnxKcLNIII2NY4VBpg2LaSp8M52AZHVjaZ/0H+0+ 57AaadAUZxeW2XWCTFScAtOGhrg1KkkAcVUYi7C+AO873k+hhVsorfff2O936CFt MnEDE+/PRB/1NW+5KaciSQNPw/0JHcvxOsRIJQaD1Lu4lwX6JTXQr3Lc1K8N6V2n XlCcKPEjG/CYTRrZBwD/02sRsUxZE9WZulludcJ4tL0CYE+DXmN94poH9rg/L0gK iLQa4Hhk5ccv5YhRznw8Uhy+zDQY1fQVqSkgauXpM7oVCyChW0DFQyhcL7uJai4= =95Ay -END PGP SIGNATURE- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Seeing backtrace on boot in ioremap_caller
2010/10/10 Jan Willies > 2010/10/9 Philip Prindeville > > I'm seeing the following when booting: >> >> [ cut here ] >> WARNING: at arch/x86/mm/ioremap.c:148 __ioremap_caller+0xcc/0x2b0() >> Modules linked in: >> Pid: 1, comm: swapper Not tainted 2.6.32.24 #1 >> Call Trace: >> [] ? warn_slowpath_common+0x60/0x90 >> [] ? __ioremap_caller+0xcc/0x2b0 >> [] ? warn_slowpath_null+0x13/0x20 >> [] ? __ioremap_caller+0xcc/0x2b0 >> [] ? crashlog_init_fs+0x0/0x9a >> [] ? ioremap_nocache+0x14/0x20 >> [] ? crashlog_init_fs+0x22/0x9a >> [] ? crashlog_init_fs+0x22/0x9a >> [] ? utsname_sysctl_init+0xa/0xd >> [] ? do_one_initcall+0x5a/0x170 >> [] ? kernel_init+0x84/0xd7 >> [] ? kernel_init+0x0/0xd7 >> [] ? kernel_thread_helper+0x7/0x14 >> ---[ end trace a7919e7f17c0a725 ]--- >> > > Same here, a bump to 2.6.35/36 for x86 would be nice. Maybe that fixes the > issue. > Nope, same problem with 2.6.36-rc7. It has something to do with crashlog being enabled. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] bcm63xx spi patches
Hi Tanguy 2010/10/8 Tanguy Bouzéloc : > Hi Florian, > > I've updated the patches for 2.6.35 as you requested. > > I'm testing the spi bus with a si3216 slic and a si3050 daa. The patch do > not contain cs and preprend fixes yet (testing ATM). Can you write some tips on how to use your patch with a board like this [1]? This is a brcm63xx based board with si2310 onboard. 1. http://wiki.openwrt.org/inbox/alicegate_voip2_plus#picture.with.highlighted.serial.and.jtag ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] fix jffs2 support for target au1500
This will hopefully fix jffs2 support for target system rmi/amd au1x00, subtarget Au1500 and Target Profile T-Mobile InternetBox. Tested on same configuration. Related ticket: https://dev.openwrt.org/ticket/8058 Signed-off-by: Philipp Borgers >From 5ec2b5febd58a391fac6aeb7508e08a251a2be92 Mon Sep 17 00:00:00 2001 From: Philipp Borgers Date: Sun, 10 Oct 2010 19:20:03 +0200 Subject: [PATCH] fixed jffs2 support for au1500 --- target/linux/au1000/au1500/config-2.6.35 |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/au1000/au1500/config-2.6.35 b/target/linux/au1000/au1500/config-2.6.35 index f94973b..1e95be3 100644 --- a/target/linux/au1000/au1500/config-2.6.35 +++ b/target/linux/au1000/au1500/config-2.6.35 @@ -19,9 +19,9 @@ CONFIG_BITREVERSE=y # CONFIG_CAVIUM_OCTEON_REFERENCE_BOARD is not set # CONFIG_CAVIUM_OCTEON_SIMULATOR is not set CONFIG_CEVT_R4K_LIB=y -CONFIG_CMDLINE="console=ttyS0,115200" +CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/mtdblock0 rootfstype=squashfs,jffs2" CONFIG_CMDLINE_BOOL=y -# CONFIG_CMDLINE_OVERRIDE is not set +CONFIG_CMDLINE_OVERRIDE=y # CONFIG_CPU_BIG_ENDIAN is not set # CONFIG_CPU_CAVIUM_OCTEON is not set ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] add lsm package
On Sun, 2010-10-10 at 10:10 -0400, Brian J. Murrell wrote: > This updates the lsm package in feeds/packages to 0.60. This copy doesn't have lines wrapped as the previous copy did, unfortunately. > It includes a shorewall-lite hook so that if one has lsm and > shorewall-lite installed, lsm will cycle shorewall-lite on a link > transition. > > Signed-off-by: Brian J. Murrell interlinx.bc.ca> From 30de624404fcf83e211b3d21bd891d3dd03e8e3e Mon Sep 17 00:00:00 2001 From: Brian J. Murrell Date: Sun, 10 Oct 2010 09:49:01 -0400 Subject: [PATCH 2/2] upgrade to 0.60 Upgrade to new upstream version 0.60. Better handle the tarball extraction and target relocation. New initscript using start-stop-daemon. Enable the reopen reopen_on_enodev feature so that restarted PPP interfaces are better tracked. --- net/lsm/Makefile | 12 net/lsm/files/lsm.conf |1 + net/lsm/files/lsm.init | 40 3 files changed, 41 insertions(+), 12 deletions(-) diff --git a/net/lsm/Makefile b/net/lsm/Makefile index 1aa3d2d..7fd0faa 100644 --- a/net/lsm/Makefile +++ b/net/lsm/Makefile @@ -8,15 +8,17 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lsm -PKG_VERSION:=0.53 +PKG_VERSION:=0.60 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://lsm.foobar.fi/download -PKG_MD5SUM:=983911b434a3c649fcefdc99e6ea2f37 +PKG_MD5SUM:=f4748308c0a1caa98d7e756778954116 include $(INCLUDE_DIR)/package.mk +PKG_UNPACK += && rmdir $(PKG_BUILD_DIR) && mv $(BUILD_DIR)/lsm $(PKG_BUILD_DIR) + define Package/lsm SECTION:=net CATEGORY:=Network @@ -34,12 +36,6 @@ define Package/lsm/conffiles /etc/lsm/lsm.conf endef -define Build/Prepare - $(call Build/Prepare/Default) - rmdir $(PKG_BUILD_DIR) - mv $(BUILD_DIR)/lsm $(PKG_BUILD_DIR) -endef - define Build/Compile echo sed -ie 's/\(CC)/mipsel-openwrt-linux-uclibc-gcc/g' $(PKG_BUILD_DIR)/Makefile $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) diff --git a/net/lsm/files/lsm.conf b/net/lsm/files/lsm.conf index ce54cea..16f9d04 100644 --- a/net/lsm/files/lsm.conf +++ b/net/lsm/files/lsm.conf @@ -12,6 +12,7 @@ #debug=10 #debug=9 debug=8 +reopen_on_enodev=1 # # Defaults for the connection entries diff --git a/net/lsm/files/lsm.init b/net/lsm/files/lsm.init index e9d3162..d1ca4ff 100644 --- a/net/lsm/files/lsm.init +++ b/net/lsm/files/lsm.init @@ -1,12 +1,44 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org -START=50 +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +NAME=lsm +PROG=/usr/sbin/$NAME +DESC="Link State Monitor" +PIDFILE=/var/run/lsm.pid +START=45 + +test -x $PROG || exit 0 +set -e start() { - lsm /etc/lsm/lsm.conf + echo -n "Starting $DESC: $NAME" + start-stop-daemon -q -S -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + + echo "." } stop() { - killall lsm + echo -n "Stopping $DESC: $NAME" + start-stop-daemon -q -K -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + echo "." } +restart() { + echo -n "Restarting $DESC: $NAME... " + start-stop-daemon -q -K -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + sleep 1 + start-stop-daemon -q -S -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + echo "done." +} + +reload() { + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + echo -n "Reloading $DESC configuration... " + start-stop-daemon -q -K -s HUP -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + echo "done." +} -- 1.7.0.4 signature.asc Description: This is a digitally signed message part ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] update shorewall-lite to 4.4.12.2
This simply updates shorewall-lite to the (at least near) current 4.4.12.2 Signed-off-by: Brian J. Murrell interlinx.bc.ca> From ac83d42571620e02b8d4b55c550e34b05aea0f21 Mon Sep 17 00:00:00 2001 From: Brian J. Murrell Date: Tue, 14 Sep 2010 11:17:32 -0400 Subject: [PATCH 1/2] update shorewall-lite to 4.4.12.2 Include support for calling shorewall-lite from LSM to shorewall-lite package. --- net/shorewall-lite/Makefile |8 +--- net/shorewall-lite/patches/100-hostname.patch| 11 --- net/shorewall-lite/patches/110-MODULESDIR.patch |4 ++-- net/shorewall-lite/patches/130-portability.patch | 20 4 files changed, 7 insertions(+), 36 deletions(-) delete mode 100644 net/shorewall-lite/patches/100-hostname.patch delete mode 100644 net/shorewall-lite/patches/130-portability.patch diff --git a/net/shorewall-lite/Makefile b/net/shorewall-lite/Makefile index c0be483..bc1ac86 100644 --- a/net/shorewall-lite/Makefile +++ b/net/shorewall-lite/Makefile @@ -8,8 +8,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=shorewall-lite -PKG_VERSION:=4.4.5.4 -PKG_DIRECTORY:=4.4.5 +PKG_VERSION:=4.4.12.2 +PKG_DIRECTORY:=4.4.12 PKG_RELEASE:=1 PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \ @@ -20,7 +20,7 @@ PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIREC http://shorewall.infohiiway.com/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \ http://www.shorewall.com.ar/pub/shorewall/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_MD5SUM:=3e8fb21ccff0f2c7503d8c3bf8607dd7 +PKG_MD5SUM:=b030e988c36fc1ef8c0e27447faef2a6 include $(INCLUDE_DIR)/package.mk @@ -49,6 +49,7 @@ endef define Package/shorewall-lite/install $(INSTALL_DIR) $(1)/sbin $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_DIR) $(1)/etc/lsm/script.d $(INSTALL_DIR) $(1)/etc/hotplug.d/iface $(INSTALL_DIR) $(1)/etc/shorewall-lite $(INSTALL_DIR) $(1)/usr/share @@ -57,6 +58,7 @@ define Package/shorewall-lite/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/shorewall-lite $(1)/sbin $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite $(1)/usr/share $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite + $(INSTALL_BIN) ./files/lsm_script $(1)/etc/lsm/script.d/45_shorewall-lite $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite $(1)/etc $(CP) ./files/vardir $(1)/etc/shorewall-lite endef diff --git a/net/shorewall-lite/patches/100-hostname.patch b/net/shorewall-lite/patches/100-hostname.patch deleted file mode 100644 index 97907fe..000 --- a/net/shorewall-lite/patches/100-hostname.patch +++ /dev/null @@ -1,11 +0,0 @@ a/shorewall-lite -+++ b/shorewall-lite -@@ -153,7 +153,7 @@ - - export VERBOSE - --[ -n "${HOSTNAME:=$(hostname)}" ] -+[ -n "${HOSTNAME:=$(${SHAREDIR}/hostname)}" ] - - } - diff --git a/net/shorewall-lite/patches/110-MODULESDIR.patch b/net/shorewall-lite/patches/110-MODULESDIR.patch index 08afb67..a947709 100644 --- a/net/shorewall-lite/patches/110-MODULESDIR.patch +++ b/net/shorewall-lite/patches/110-MODULESDIR.patch @@ -1,5 +1,5 @@ a/lib.base -+++ b/lib.base +--- a/lib.common b/lib.common @@ -220,7 +220,7 @@ reload_kernel_modules() { [ -z "$MODULESDIR" ] && \ diff --git a/net/shorewall-lite/patches/130-portability.patch b/net/shorewall-lite/patches/130-portability.patch deleted file mode 100644 index 3bf7de2..000 --- a/net/shorewall-lite/patches/130-portability.patch +++ /dev/null @@ -1,20 +0,0 @@ a/install.sh -+++ b/install.sh -@@ -295,13 +295,15 @@ cd manpages - - for f in *.5; do - gzip -c $f > $f.gz --run_install -D -m 644 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz -+run_install -d ${PREFIX}/usr/share/man/man5 -+run_install -m 644 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz - echo "Man page $f.gz installed to ${PREFIX}/usr/share/man/man5/$f.gz" - done - - for f in *.8; do - gzip -c $f > $f.gz --run_install -D -m 644 $f.gz ${PREFIX}/usr/share/man/man8/$f.gz -+run_install -d ${PREFIX}/usr/share/man/man8 -+run_install -m 644 $f.gz ${PREFIX}/usr/share/man/man8/$f.gz - echo "Man page $f.gz installed to ${PREFIX}/usr/share/man/man8/$f.gz" - done - -- 1.7.0.4 signature.asc Description: This is a digitally signed message part ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] add lsm package
This updates the lsm package in feeds/packages to 0.60. It includes a shorewall-lite hook so that if one has lsm and shorewall-lite installed, lsm will cycle shorewall-lite on a link transition. Signed-off-by: Brian J. Murrell interlinx.bc.ca> From 30de624404fcf83e211b3d21bd891d3dd03e8e3e Mon Sep 17 00:00:00 2001 From: Brian J. Murrell Date: Sun, 10 Oct 2010 09:49:01 -0400 Subject: [PATCH 2/2] upgrade to 0.60 Upgrade to new upstream version 0.60. Better handle the tarball extraction and target relocation. New initscript using start-stop-daemon. Enable the reopen reopen_on_enodev feature so that restarted PPP interfaces are better tracked. --- net/lsm/Makefile | 12 net/lsm/files/lsm.conf |1 + net/lsm/files/lsm.init | 40 3 files changed, 41 insertions(+), 12 deletions(-) diff --git a/net/lsm/Makefile b/net/lsm/Makefile index 1aa3d2d..7fd0faa 100644 --- a/net/lsm/Makefile +++ b/net/lsm/Makefile @@ -8,15 +8,17 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lsm -PKG_VERSION:=0.53 +PKG_VERSION:=0.60 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://lsm.foobar.fi/download -PKG_MD5SUM:=983911b434a3c649fcefdc99e6ea2f37 +PKG_MD5SUM:=f4748308c0a1caa98d7e756778954116 include $(INCLUDE_DIR)/package.mk +PKG_UNPACK += && rmdir $(PKG_BUILD_DIR) && mv $(BUILD_DIR)/lsm $(PKG_BUILD_DIR) + define Package/lsm SECTION:=net CATEGORY:=Network @@ -34,12 +36,6 @@ define Package/lsm/conffiles /etc/lsm/lsm.conf endef -define Build/Prepare - $(call Build/Prepare/Default) - rmdir $(PKG_BUILD_DIR) - mv $(BUILD_DIR)/lsm $(PKG_BUILD_DIR) -endef - define Build/Compile echo sed -ie 's/\(CC)/mipsel-openwrt-linux-uclibc-gcc/g' $(PKG_BUILD_DIR)/Makefile $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) diff --git a/net/lsm/files/lsm.conf b/net/lsm/files/lsm.conf index ce54cea..16f9d04 100644 --- a/net/lsm/files/lsm.conf +++ b/net/lsm/files/lsm.conf @@ -12,6 +12,7 @@ #debug=10 #debug=9 debug=8 +reopen_on_enodev=1 # # Defaults for the connection entries diff --git a/net/lsm/files/lsm.init b/net/lsm/files/lsm.init index e9d3162..d1ca4ff 100644 --- a/net/lsm/files/lsm.init +++ b/net/lsm/files/lsm.init @@ -1,12 +1,44 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org -START=50 +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +NAME=lsm +PROG=/usr/sbin/$NAME +DESC="Link State Monitor" +PIDFILE=/var/run/lsm.pid +START=45 + +test -x $PROG || exit 0 +set -e start() { - lsm /etc/lsm/lsm.conf + echo -n "Starting $DESC: $NAME" + start-stop-daemon -q -S -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + + echo "." } stop() { - killall lsm + echo -n "Stopping $DESC: $NAME" + start-stop-daemon -q -K -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + echo "." } +restart() { + echo -n "Restarting $DESC: $NAME... " + start-stop-daemon -q -K -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + sleep 1 + start-stop-daemon -q -S -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + echo "done." +} + +reload() { + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + echo -n "Reloading $DESC configuration... " + start-stop-daemon -q -K -s HUP -p $PIDFILE -x $PROG -- /etc/lsm/lsm.conf $PIDFILE + echo "done." +} -- 1.7.0.4 signature.asc Description: This is a digitally signed message part ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel