diff options
-rw-r--r-- | meta/recipes-core/ifupdown/ifupdown_0.8.35.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-core/ifupdown/ifupdown_0.8.35.bb b/meta/recipes-core/ifupdown/ifupdown_0.8.35.bb index 53cb971d33..a8913e6e29 100644 --- a/meta/recipes-core/ifupdown/ifupdown_0.8.35.bb +++ b/meta/recipes-core/ifupdown/ifupdown_0.8.35.bb | |||
@@ -48,6 +48,13 @@ do_install_ptest () { | |||
48 | cp -r ${S}/tests/linux ${D}${PTEST_PATH}/tests/ | 48 | cp -r ${S}/tests/linux ${D}${PTEST_PATH}/tests/ |
49 | } | 49 | } |
50 | 50 | ||
51 | pkg_postinst_ontarget_${PN} () { | ||
52 | if [ ! -f /etc/network/interfaces ]; then | ||
53 | mkdir -p /etc/network | ||
54 | touch /etc/network/interfaces | ||
55 | fi | ||
56 | } | ||
57 | |||
51 | ALTERNATIVE_PRIORITY = "100" | 58 | ALTERNATIVE_PRIORITY = "100" |
52 | ALTERNATIVE_${PN} = "ifup ifdown" | 59 | ALTERNATIVE_${PN} = "ifup ifdown" |
53 | 60 | ||