OpenWrt Forum Archive

Topic: Error while installing nodogsplash to WAP120NF please help!!!

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I tried to install nodogsplas in to my wap120nf router and got this error could somebody explain and help me?

Installing nodogsplash (0.9_beta9.9.9-6) to root...
Downloading http://downloads.openwrt.org/snapshots/ … 24kec.ipk.
Multiple packages (libgcc and libgcc) providing same name marked HOLD or PREFER. Using latest.
Installing libpthread (1.1.14-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … 24kec.ipk.

Configuring libpthread.
Configuring nodogsplash.
//usr/lib/opkg/info/libpthread.postinst: line 4: default_postinst: not found
//usr/lib/opkg/info/nodogsplash.postinst: line 4: default_postinst: not found
Collected errors:
* pkg_run_script: package "libpthread" postinst script returned status 127.
* opkg_configure: libpthread.postinst returned 127.
* pkg_run_script: package "nodogsplash" postinst script returned status 127.
* opkg_configure: nodogsplash.postinst returned 127.

BTW my opkg.conf

src/gz barrier_breaker_base http://downloads.openwrt.org/snapshots/ … kages/base
src/gz barrier_breaker_packages http://downloads.openwrt.org/snapshots/ … s/packages
src/gz barrier_breaker_luci http://downloads.openwrt.org/snapshots/ … kages/luci
src/gz barrier_breaker_routing http://downloads.openwrt.org/snapshots/ … es/routing
src/gz barrier_breaker_telephony http://downloads.openwrt.org/snapshots/ … /telephony
src/gz barrier_breaker_management http://downloads.openwrt.org/snapshots/ … management
src/gz barrier_breaker_kernel http://downloads.openwrt.org/snapshots/ … ges/kernel
src/gz barrier_breaker_targets http://downloads.openwrt.org/snapshots/ … es/targets
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay

(Last edited by chiakhoavang.vn on 19 Apr 2016, 10:44)

default_postinst() is defined in /lib/functions.sh

Max Hopper wrote:

default_postinst() is defined in /lib/functions.sh

Thanks Max, could you give me some sample so I can install nodogsplash to my router

Sample? Check the file system of the AP.

Max Hopper wrote:

Sample? Check the file system of the AP.

Sorry there is no such file /lib/functions.sh

But there is /lib/functions folder with those files

leds.sh
network.sh
procd.sh
services.sh
uci-defaults.sh

and here is the content in //usr/lib/opkg/info/libpthread.postinst

#!/bin/sh
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
default_postinst $0 $@


And
/usr/lib/opkg/info/nodogsplash.postinst

#!/bin/sh
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
default_postinst $0 $@

(Last edited by chiakhoavang.vn on 21 Apr 2016, 09:58)

chiakhoavang.vn wrote:

Sorry there is no such file /lib/functions.sh

You have the answer to the failure.

88

Max Hopper wrote:
chiakhoavang.vn wrote:

Sorry there is no such file /lib/functions.sh

You have the answer to the failure.

88

can I copy it from any where?

Are you not interested as to why the file does not exist?

Here (but hacking is not recommended).

The discussion might have continued from here.