Ignore:
Timestamp:
2011-09-07T00:05:27+02:00 (5 years ago)
Author:
jow
Message:

[backfire] merge r28187

Location:
branches/packages_10.03.1/net/vnstat
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.1/net/vnstat/Makefile

    r27116 r28188  
    1010PKG_NAME:=vnstat 
    1111PKG_VERSION:=1.11 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    9090        $(INSTALL_DIR) $(1)/etc/init.d 
    9191        $(INSTALL_BIN) ./files/vnstat.init $(1)/etc/init.d/vnstat 
     92        $(INSTALL_DIR) $(1)/etc/uci-defaults 
     93        $(INSTALL_BIN) ./files/vnstat.defaults $(1)/etc/uci-defaults/vnstat 
    9294endef 
    9395 
     
    99101define Package/vnstat/postinst 
    100102#!/bin/sh 
    101 local wan="$$(uci -P/var/state get network.wan.ifname)" 
    102 if [ -n "$$wan" ]; then 
    103         uci -q batch <<-EOF >/dev/null 
    104                 add_list vnstat.@vnstat[-1].interface=$$wan 
    105                 commit vnstat 
    106         EOF 
    107 fi 
     103[ -n "$${IPKG_INSTROOT}" ] || (. /etc/uci-defaults/vnstat) && rm -f /etc/uci-defaults/vnstat 
    108104exit 0 
    109105endef 
Note: See TracChangeset for help on using the changeset viewer.