forked from arbv/entware-installer-for-magisk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkshrc
19 lines (16 loc) · 762 Bytes
/
mkshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/system/bin/sh
# ENTWARE_PROFILE is defined in /system/etc/mkshrc and in
# /system/etc/profile. See the Magisk's Entware startup script for
# additional details (usually /data/adb/modules/entware-magisk/entware.sh).
# Load profile (if required) - most of the terminal emulators on Android
# do not invoke the login shell. Thus, we are going to load the file manually
# to initialise the environmental variables properly (including PATH).
#
# PROFILE_SCRIPT_LOADED is defined in profile to avoid extra profile invocation.
if [ -r "$ENTWARE_PROFILE" ] && [ "$PROFILE_SCRIPT_LOADED" != "$(id -u)" ]; then
. "$ENTWARE_PROFILE"
fi
# Load user interactive shell initialisation file.
if [ -n "$HOME" ] && [ -r "$HOME/.mkshrc" ]; then
. "$HOME/.mkshrc"
fi