1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh if [ ! -d /opt/vyatta/sbin/policy ];then mkdir -p /opt/vyatta/sbin/policy fi if [ -f /usr/bin/vtysh ] && [ ! -f /opt/vyatta/sbin/policy/vtysh ]; then ln -s /usr/bin/vtysh /opt/vyatta/sbin/policy/vtysh fi # Create a directory for autosaved quagga configs AUTOSAVE_DIR=/opt/vyatta/etc/quagga mkdir -p $AUTOSAVE_DIR chown root:vyattacfg $AUTOSAVE_DIR chmod 770 $AUTOSAVE_DIR