2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2007-02-22 23:46:50 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2007-02-22 23:46:50 +01:00
|
|
|
{
|
2022-03-14 21:32:33 +01:00
|
|
|
map add_binary dnsdomainname netstat arp ipmaddr iptunnel mii-tool nameif plipconfig rarp \
|
2022-01-31 11:16:04 +01:00
|
|
|
slattach traceroute arping clockdiff rarpd rdisc tracepath \
|
2022-02-05 16:07:30 +01:00
|
|
|
dig host nslookup telnet ssh arpd genl ifstat ctstat rtstat lnstat nstat rtacct rtmon ss \
|
2022-10-12 21:22:52 +02:00
|
|
|
tc ifplugd ifplugstatus bridge dcb devlink rdma tipc vdpa \
|
2022-10-23 10:53:49 +02:00
|
|
|
ninfod ethtool elinks weechat dhcp_lease_time dhcp_release dhcp_release6 \
|
2022-10-12 21:22:52 +02:00
|
|
|
routel brctl
|
2022-03-14 21:32:33 +01:00
|
|
|
# add iproute 2, add openssl helper libraries
|
|
|
|
map add_full_dir "/usr/lib/tc" "/usr/share/tc" "/etc/iproute2" "/usr/lib/engines"
|
2012-04-22 20:38:54 +02:00
|
|
|
# add dnssec-anchors
|
|
|
|
add_file "/etc/trusted-key.key"
|
2009-11-23 22:50:18 +01:00
|
|
|
# add ifplugd support
|
2012-08-25 08:43:15 +02:00
|
|
|
add_full_dir "/etc/ifplugd"
|
2022-04-02 10:13:16 +02:00
|
|
|
# add weechat plugins and defaults
|
|
|
|
PLUGINS="alias exec lua relay typing buflist fifo irc xfer charset fset logger script trigger"
|
|
|
|
for i in ${PLUGINS}; do
|
|
|
|
add_file "/usr/lib/weechat/plugins/$i.so"
|
|
|
|
done
|
2022-04-01 18:36:37 +02:00
|
|
|
add_file "/usr/share/archboot/net/etc/weechat/irc.conf" "/etc/weechat/irc.conf"
|
|
|
|
add_file "/usr/share/archboot/net/etc/weechat/weechat.conf" "/etc/weechat/weechat.conf"
|
|
|
|
add_file "/usr/share/archboot/net/etc/profile.d/weechat.sh" "/etc/profile.d/weechat.sh"
|
2022-04-01 15:40:44 +02:00
|
|
|
# add elinks defaults
|
2022-04-01 18:36:37 +02:00
|
|
|
add_file "/usr/share/archboot/net/etc/elinks/bookmarks" "/etc/elinks/bookmarks"
|
2022-04-01 15:40:44 +02:00
|
|
|
add_file "/usr/share/archboot/net/etc/profile.d/elinks.sh" "/etc/profile.d/elinks.sh"
|
2009-05-08 08:05:45 +02:00
|
|
|
# fixing licenses
|
2022-10-12 21:22:52 +02:00
|
|
|
map add_file "/usr/share/licenses/db/LICENSE" \
|
2022-03-14 21:32:33 +01:00
|
|
|
"/usr/share/licenses/bind/LICENSE" "/usr/share/licenses/krb5/LICENSE" \
|
2022-11-09 11:39:46 +01:00
|
|
|
"/usr/share/licenses/openssh/LICENCE" "/usr/share/licenses/openssl/LICENSE.txt" \
|
2022-03-14 21:32:33 +01:00
|
|
|
"/usr/share/licenses/sqlite/license.txt" "/usr/share/licenses/dnssec-anchors/LICENSE"
|
2007-02-22 23:46:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2021-10-04 11:13:50 +02:00
|
|
|
This hook includes the network on an archboot image.
|
2007-02-22 23:46:50 +01:00
|
|
|
HELPEOF
|
|
|
|
}
|