Mini Shell
#!/usr/bin/bash
# Copy proxyexec to skeleton
if [ -e "/usr/share/cagefs-skeleton" ]; then
if [ -e "/usr/sbin/proxyexec" ]; then
mkdir -p /usr/share/cagefs-skeleton/usr/sbin/ > /dev/null 2>&1
cp -f /usr/sbin/proxyexec /usr/share/cagefs-skeleton/usr/sbin/proxyexec > /dev/null 2>&1
fi
if [ -e "/usr/lib64/libbsock.so" ]; then
mkdir -p /usr/share/cagefs-skeleton/usr/lib64/ > /dev/null 2>&1
cp -f /usr/lib64/libbsock.so /usr/share/cagefs-skeleton/usr/lib64/libbsock.so > /dev/null 2>&1
fi
if [ -e "/usr/lib64/libbsock_preload.so" ]; then
mkdir -p /usr/share/cagefs-skeleton/usr/lib64/ > /dev/null 2>&1
cp -f /usr/lib64/libbsock_preload.so /usr/share/cagefs-skeleton/usr/lib64/libbsock_preload.so > /dev/null 2>&1
fi
if [ -e "/usr/lib/libbsock.so" ]; then
mkdir -p /usr/share/cagefs-skeleton/usr/lib/ > /dev/null 2>&1
cp -f /usr/lib/libbsock.so /usr/share/cagefs-skeleton/usr/lib/libbsock.so > /dev/null 2>&1
fi
if [ -e "/usr/lib/libbsock_preload.so" ]; then
mkdir -p /usr/share/cagefs-skeleton/usr/lib/ > /dev/null 2>&1
cp -f /usr/lib/libbsock_preload.so /usr/share/cagefs-skeleton/usr/lib/libbsock_preload.so > /dev/null 2>&1
fi
if [ ! -e "/usr/share/cagefs-skeleton/usr/lib/bsock" ]; then
if [ -e "/usr/lib/bsock" ]; then
mkdir -p /usr/share/cagefs-skeleton/usr/lib/ > /dev/null 2>&1
ln -s libbsock.so /usr/share/cagefs-skeleton/usr/lib/bsock > /dev/null 2>&1
fi
fi
if [ ! -e "/usr/share/cagefs-skeleton/usr/lib64/bsock" ]; then
if [ -e "/usr/lib64/bsock" ]; then
mkdir -p /usr/share/cagefs-skeleton/usr/lib64/ > /dev/null 2>&1
ln -s libbsock.so /usr/share/cagefs-skeleton/usr/lib64/bsock > /dev/null 2>&1
fi
fi
fi
/sbin/service proxyexecd restart > /dev/null 2>&1
exit 0
Zerion Mini Shell 1.0