]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/linux/update.sh
Merge pull request #18007 from fw-strlen/ipv6_masq_and_dnat
[thirdparty/systemd.git] / src / basic / linux / update.sh
1 #!/usr/bin/env bash
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 set -eu
4
5 for i in *.h */*.h; do
6 if [[ $i == 'loadavg.h' ]]; then
7 curl --fail https://raw.githubusercontent.com/torvalds/linux/master/include/linux/sched/$i -o $i
8 else
9 curl --fail https://raw.githubusercontent.com/torvalds/linux/master/include/uapi/linux/$i -o $i
10 fi
11
12 sed -i -e 's/__user //g' -e '/^#include <linux\/compiler.h>/ d' $i
13 done