Jump to content

Recommended Posts

Posted

Можно как-то за пределами chroot-Debian использовать бинарники из директории /opt/debian/bin к примеру? Или перезапускать службы, что работают в chroot-Debian - те что /opt/debian/etc/init.d/service start|restart|stop? Иначе использование событий типа wan.dnetfilter.d является ограниченным

  • 6 months later...
Posted (edited)
#!/bin/sh

CHROOT_DIR=/opt/debian

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/sbin \
LC_ALL=C \
LANGUAGE=C \
LANG=C \

chroot $CHROOT_DIR ipupdate

Debian Stable Buster 10.4
Разобрался. Код скрипта отсюда /opt/etc/ndm/wan.d/100-ipupdate.sh - выполняет /bin/ipupdate внутри chroot-Debian (тот, что /opt/debian/bin/ipupdate)

Edited by Kravenrus

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.