Initial commit
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
fruBusNum=13
|
||||
fruAddr=0x51
|
||||
numberMac=1
|
||||
mac1=eth1
|
||||
+11
@@ -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
|
||||
}
|
||||
+17
@@ -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
|
||||
}
|
||||
+12
@@ -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
|
||||
Reference in New Issue
Block a user