split fbsetbg into a seperate package and make X call it on startup, if it is preset
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9198 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
962d5beeaa
commit
2ec1921524
@ -45,7 +45,13 @@ endef
|
||||
define Package/fbsetroot
|
||||
$(call Package/fluxbox/Default)
|
||||
DEPENDS:=fluxbox
|
||||
TITLE:=set fluxbox background
|
||||
TITLE:=set fluxbox background colors
|
||||
endef
|
||||
|
||||
define Package/fbsetbg
|
||||
$(call Package/fluxbox/Default)
|
||||
DEPENDS:=fluxbox +x-bkgd-images +eterm
|
||||
TITLE:=set fluxbox background images
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
@ -68,12 +74,17 @@ endef
|
||||
define Package/fluxbox/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/usr/share/fluxbox/styles/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/{fluxbox,fbsetbg} $(1)/usr/bin/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/fluxbox $(1)/usr/bin/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/{init,keys} $(1)/usr/share/fluxbox/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/styles/* $(1)/usr/share/fluxbox/styles/
|
||||
$(CP) files/menu $(1)/usr/share/fluxbox/
|
||||
endef
|
||||
|
||||
define Package/fbsetbg/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/fbsetbg $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
define Package/fbsetroot/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/fbsetroot $(1)/usr/bin/
|
||||
@ -85,5 +96,6 @@ define Package/fbrun/install
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,fbrun))
|
||||
$(eval $(call BuildPackage,fbsetbg))
|
||||
$(eval $(call BuildPackage,fbsetroot))
|
||||
$(eval $(call BuildPackage,fluxbox))
|
||||
|
@ -1 +1,5 @@
|
||||
BKGD_IMAGE_PATH=/usr/share/X11/bkgd-images/
|
||||
if [ -x `which fbsetbg` ]; then
|
||||
fbsetbg -f ${BKGD_IMAGE_PATH}/default.png
|
||||
fi
|
||||
fluxbox
|
||||
|
Loading…
x
Reference in New Issue
Block a user