4 bi_crosstools_inst_dir=$bi_src_base/toolchains
9 echo "This script installs BCM963xx DSL router components onto your Linux PC. The"
10 echo "installation will overwrite existing files. You will be prompted before a"
11 echo "component is installed."
13 echo "This script may create directories and overwrite existing files. Therefore,"
14 echo "you will need to have root privilages to run this script."
16 read -p "Press 'y' to continue: " -n 1 dr_continue
18 if [ "$dr_continue" != "y" ] ; then
20 echo "exiting script";
28 bcm963*_consumer.tar.gz)
29 bi_src_dir=$bi_src_base/bcm963xx_router
31 echo "The bcm963xx DSL router source files are ready to be installed at "
32 echo "$bi_src_dir. Existing source files, in any, will be overwritten. "
34 read -p "Press 'y' to install the bcm963xx DSL router source files: " -n 1 dr_continue
37 if [ "$dr_continue" == "y" ] ; then
39 if ! [ -d $bi_src_dir ] ; then
40 echo "Creating directory $bi_src_dir."
44 if [ -d $bi_src_dir ] ; then
45 echo "Installing files from $bi_this_dir/$f."
48 tar xfz $bi_this_dir/$f
51 echo "The directory $bi_src_dir does not exist."
52 echo "The BCM963xx DSL router source files were not installed."
55 echo "The BCM963xx DSL router source files were not installed."
59 bcm963*_uclibc_crosstools*.tar.gz)
61 echo "The BCM963xx DSL router toolchain is ready to be installed at $bi_crosstools_inst_dir."
62 echo "Existing toolchain files, if any, will be overwritten."
64 read -p "Press 'y' to install the BCM963xx toolchain: " -n 1 dr_continue
67 if [ "$dr_continue" == "y" ] ; then
69 if ! [ -d $bi_src_base ] ; then
70 echo "Creating directory $bi_src_base."
74 if [ -d $bi_src_base ] ; then
75 echo "Installing files from $bi_this_dir/$f."
79 rpm -ivh uclibc-crosstools*.rpm
81 echo "The directory $bi_src_base does not exist."
82 echo "The BCM963xx toolchain was not installed."
85 echo "The BCM963xx toolchain was not installed."