Application Extension Platform 1.x -- Enabling the Linux Shell in a Virtual Instance
m (→Change permissions)
m (1 revision)
Latest revision as of 20:30, 2 December 2010
To enable the Linux shell to be used by your application, the application must be packaged with a postinstall script as described below.
Creating the Postinstall Script
To obtain console access using a postinstall script, perform the following steps:
Create a login script
In this example bash file /source/bin/login.sh is created, where /source is the build directory.
#! /bin/sh /bin/bash --login
Create a postinstall script
In this example, script /source/bin/postinstall.sh is created, where /source is the build directory.
#! /bin/sh ln -s /bin/login.sh /bin/console
Change the permissions of the postinstall script for non-owner users to read-execute.
chmod 755 /opt/tcptrace/postscripts/postinstall.sh
The next step is to package and install your application, referring to the postinstall script. Pass the name of the postinstall script to the Cisco AXP packaging tool script during packaging.
To navigate to the Linux shell refer to Application Extension Platform 1.x -- Accessing the Guest Operating System
Return to start of: Cisco AXP Getting Started Guide