2 # hdw - linux ; adapt local configs
10 -cfg) config=$2 ; shift 2 ;;
11 -from) root=$2 ; shift 2 ;;
12 -to) target=$2 ; shift 2 ;;
13 *) echo "usage: $0 -cfg [full|]"
20 [ -z "$target" ] && target=$hdw_build_dir
21 echo "target -> $target <-"
22 [ -z "$target" ] && exit 1
30 if [ "$config" = "full" ] ; then
34 run_it cp $root/usr/src/linux/.config $target/usr/src/linux/.config
36 [ -f $root/etc/X11/XF86Config* ] && \
37 run_it cp $root/etc/X11/XF86Config* $target/etc/X11/
38 [ -f $root/etc/X11/xorg.conf* ] && \
39 run_it cp $root/etc/X11/xorg.conf* $target/etc/X11/
41 for i in profile fstab hosts host.conf HOSTNAME resolv.conf conf/ ; do
42 run_it rm -rf $target/etc/$i
43 run_it cp -r $root/etc/$i $target/etc