[OpenWrt-Devel] [PATCH] base-files: add /etc/profile.d support

Bastian Bittorf bittorf at bluebottle.com
Wed Jun 10 14:46:09 EDT 2015


* Yousong Zhou <yszhou4tech at gmail.com> [10.06.2015 20:38]:
> > distributions. This allows packages to install their own scripts into
> > /etc/profile.d/.
> 
> IMO, OpenWrt is not like most of other Linux distributions.  So what are
> those other packages that need this and the current specific use cases?

I agree, that OpenWrt differs - and i have a usecase:

1)
we like to have special helpers like

alias n='wget -qO - http://127.0.0.1:2006/neighbours'
(for OLSRd)

and we source/include a special 'metascript' which
makes adminstration much easier. for now we patch /etc/profile
but having it in profile.d is more clean and: it is automatically
removed if package XY is also removed...

bye, bastian
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list