On Thu, Jul 26, 2012 at 2:52 PM, Bryan Anderson <shadow...@gmail.com> wrote:

> Is the /usr/bin/sipxecs-setup supposed to run the first *two* times you
> log into the system?


If sipxecs-setup is successful, it removes itself from /root/.bashrc which
is called upon login.  The code to remove itself is also in ~/.bashrc.

cat >> /root/.bashrc <<EOF

/usr/bin/sipxecs-setup
# restore /root/.bashrc and /etc/issue to original states upon successful
# setup.
if [ $? == 0 ]; then
  sed -i '/^\/usr\/bin\/sipxecs-setup$/,//d' /root/.bashrc
  sed -i '/^====/,//d' /etc/issue
fi
EOF


It's always worked for me, but it always works for the developer.  If you
see anything that would make this not work on you machine, maybe we can fix
this.
_______________________________________________
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Reply via email to