Application Extension Platform 1.x -- Enabling the Linux Shell in a Virtual Instance

From DocWiki

Revision as of 20:30, 2 December 2010 by Jwithing (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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/ is created, where /source is the build directory.

#! /bin/sh
/bin/bash --login

Create a postinstall script

In this example, script /source/bin/ is created, where /source is the build directory.

#! /bin/sh
ln -s /bin/ /bin/console

Change permissions

Change the permissions of the postinstall script for non-owner users to read-execute.
chmod 755 /opt/tcptrace/postscripts/

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

Rating: 0.0/5 (0 votes cast)

Personal tools