Application Extension Platform 1.x -- Enabling the Linux Shell in a Virtual Instance
From DocWiki
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.
Contents |
Creating the Postinstall Script
To obtain console access using a postinstall script, perform the following steps:
Create a login script
Example:
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
Example:
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 permissions
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: Application Extension Platform 1.x -- Packaging Applications on Cisco AXP
Return to: Application_Extension_Platform_1.x_--_Accessing_the_Guest_Operating_System
Return to start of: Cisco AXP Getting Started Guide