mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 01:37:04 +00:00
Use onldebni to automatically run debian operations non-interactively under policy-rc.d protection.
This is useful for automated RFS modifications after first creation.
This commit is contained in:
9
packages/base/all/vendor-config-onl/src/bin/onldebni
Executable file
9
packages/base/all/vendor-config-onl/src/bin/onldebni
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
/bin/echo -e "#!/bin/sh\\nexit 101" >/usr/sbin/policy-rc.d
|
||||
chmod +x /usr/sbin/policy-rc.d
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
export DEBCONF_NONINTERACTIVE_SEEN=true
|
||||
$@
|
||||
rc=$?
|
||||
rm -f /usr/sbin/policy-rc.d
|
||||
exit $rc
|
||||
Reference in New Issue
Block a user