diff --git a/alfred/Makefile b/alfred/Makefile index 89950be..7589322 100644 --- a/alfred/Makefile +++ b/alfred/Makefile @@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk # PKG_NAME:=alfred PKG_VERSION:=2013.3.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MD5SUM:=018ef6262cdd11e900af31d71a864b13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/alfred/files/bat-hosts.lua b/alfred/files/bat-hosts.lua index 86a522a..c92357e 100644 --- a/alfred/files/bat-hosts.lua +++ b/alfred/files/bat-hosts.lua @@ -65,7 +65,7 @@ local function publish_bat_hosts() end local function write_bat_hosts(rows) - local content = { "### File generated by alfred-mod-bat-hosts\n" } + local content = { "### File generated by alfred-bat-hosts\n" } -- merge the chunks from all nodes, de-escaping newlines for _, row in ipairs(rows) do @@ -80,6 +80,10 @@ local function write_bat_hosts(rows) fd:write(table.concat(content)) fd:close() end + + -- try to make a symlink in /etc pointing to /tmp, + -- if it exists, ln will do nothing. + os.execute("ln -ns /tmp/bat-hosts /etc/bat-hosts") end local function receive_bat_hosts()