Skip to content
Commit f6913cae authored by Laurentiu Palcu's avatar Laurentiu Palcu Committed by Ross Burton
Browse files

Check if symlinks are valid

When using root option and $initd/$bn is a symlink, the script would fail because
the symlink points to a path on target. For example:

/path/to/target/rootfs/etc/init.d/syslog -> /etc/init.d/syslog.busybox

Hence, [ -f /path/to/target/rootfs/etc/init.d/syslog ] condition would return
false.

This patch adds the posibility to check whether the file the symlink points to
actually exists in rootfs path and then continue.
parent 8a72dd75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment