Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,4 @@
fruBusNum=13
fruAddr=0x51
numberMac=1
mac1=eth1
@@ -0,0 +1,11 @@
FILESEXTRAPATHS:prepend:olympus-nuvoton := "${THISDIR}/files:"
SRC_URI:append:olympus-nuvoton = " file://config.txt"
FILES:${PN}:append:olympus-nuvoton = " ${datadir}/mac-address/config.txt"
do_install:append:olympus-nuvoton() {
install -d ${D}${datadir}/mac-address
install -m 0644 -D ${WORKDIR}/config.txt \
${D}${datadir}/mac-address/config.txt
}
@@ -0,0 +1,17 @@
SUMMARY = "Iptable Save"
DESCRIPTION = "Save iptable rules"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit allarch systemd
SRC_URI = "file://phosphor-save-iptable-rules.service"
SYSTEMD_SERVICE:${PN} = "phosphor-save-iptable-rules.service"
S = "${WORKDIR}"
do_install() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/phosphor-save-iptable-rules.service \
${D}${systemd_unitdir}/system
}
@@ -0,0 +1,12 @@
[Unit]
Description=Save iptable rules
DefaultDependencies=no
After=shutdown.target
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/sh -c "iptables-save > /etc/iptables/iptables.rules"
[Install]
WantedBy=shutdown.target