Skip to content

Instantly share code, notes, and snippets.

View rjaeckel's full-sized avatar

Robert Jäckel rjaeckel

  • IT-Servicezentrum, Uni Halle
View GitHub Profile
@rjaeckel
rjaeckel / lddcopy.sh
Last active August 29, 2015 14:27
When chroot-ing a program, you have to copy the necessary libraries for it under the chroot-ed directories. It is sometimes a troublesome task as some libraries may have some dependencies on other libraries as the program itself does. This script, lddcopy.sh, is a convenient shell script which copies all the necessary libraries recursively and p…
#!/bin/sh
########################################################################
# lddcopy - A shell script to copy libraries for chrooted applications #
# Yu Yagi ([email protected]) #
########################################################################
chroot=
opterr=
dryrun=
silent=false