Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / insserv / | server ip : 104.21.89.46 your ip : 172.69.214.34 H O M E |
Filename | /usr/share/insserv/make-testsuite |
Size | 719 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 07-May-2013 14:07 |
Last accessed | 06-Jul-2025 08:47 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
#
# Extract key information from the current to try to generate a test
# suite script to demonstrate detected bugs.
echo 'set +C'
echo "cat <<'EOF' > \$insconf"
grep -v '#' /etc/insserv.conf |grep -v '^$'
echo "EOF"
echo 'set -C'
echo
for f in /etc/init.d/*; do
name=$(basename $f)
case $name in
README|rc|rcS|skeleton)
;;
*)
echo "addscript $name <<'EOF'"
sed -n -r '/^### BEGIN INIT INFO/, /END INIT INFO/p' < $f
echo "EOF"
echo
;;
esac
done
echo 'cd $tmpdir/etc'
echo 'mkdir rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d'
cd /etc
for f in rc?.d/*; do
case $f in
*/README)
;;
*)
echo ln -s $(readlink $f) $f
;;
esac
done
echo
echo list_rclinks
#
# Extract key information from the current to try to generate a test
# suite script to demonstrate detected bugs.
echo 'set +C'
echo "cat <<'EOF' > \$insconf"
grep -v '#' /etc/insserv.conf |grep -v '^$'
echo "EOF"
echo 'set -C'
echo
for f in /etc/init.d/*; do
name=$(basename $f)
case $name in
README|rc|rcS|skeleton)
;;
*)
echo "addscript $name <<'EOF'"
sed -n -r '/^### BEGIN INIT INFO/, /END INIT INFO/p' < $f
echo "EOF"
echo
;;
esac
done
echo 'cd $tmpdir/etc'
echo 'mkdir rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d'
cd /etc
for f in rc?.d/*; do
case $f in
*/README)
;;
*)
echo ln -s $(readlink $f) $f
;;
esac
done
echo
echo list_rclinks