Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / lib / tasksel / tests / | server ip : 104.21.89.46 your ip : 172.69.17.171 H O M E |
Filename | /usr/lib/tasksel/tests/limited |
Size | 1.1 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:52 |
Last modified | 04-Apr-2014 20:58 |
Last accessed | 06-Jul-2025 01:48 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
#
# Selects a task by default if particular task names are listed in
# tasksel/limit-tasks. Use like this:
#
# Test-limited: ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video
#
# This will cause the task to be selected if any of those tasks are listed
# in tasksel/limit-tasks, which is a reasonably good marker for a
# specialised CD install. This only applies to new installs.
# If we're being used to test an enhancing task, then it's always OK to go
# ahead and mark the task for installation.
if [ "$TESTING_ENHANCER" ]; then
exit 0 # do not display, but do install task
fi
if [ ! "$NEW_INSTALL" ]; then
exit 3 # display task, not marked for installation
fi
. /usr/share/debconf/confmodule
if ! db_fget tasksel/limit-tasks seen || [ "$RET" != true ]; then
exit 3 # display task, not marked for installation
fi
db_get tasksel/limit-tasks
LIMIT="$(echo "$RET" | sed 's/,/ /g')"
shift
for task; do
for limit in $LIMIT; do
if [ "$task" = "$limit" ]; then
exit 2 # display task, marked for installation
fi
done
done
exit 3 # display task, not marked for installation
#
# Selects a task by default if particular task names are listed in
# tasksel/limit-tasks. Use like this:
#
# Test-limited: ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video
#
# This will cause the task to be selected if any of those tasks are listed
# in tasksel/limit-tasks, which is a reasonably good marker for a
# specialised CD install. This only applies to new installs.
# If we're being used to test an enhancing task, then it's always OK to go
# ahead and mark the task for installation.
if [ "$TESTING_ENHANCER" ]; then
exit 0 # do not display, but do install task
fi
if [ ! "$NEW_INSTALL" ]; then
exit 3 # display task, not marked for installation
fi
. /usr/share/debconf/confmodule
if ! db_fget tasksel/limit-tasks seen || [ "$RET" != true ]; then
exit 3 # display task, not marked for installation
fi
db_get tasksel/limit-tasks
LIMIT="$(echo "$RET" | sed 's/,/ /g')"
shift
for task; do
for limit in $LIMIT; do
if [ "$task" = "$limit" ]; then
exit 2 # display task, marked for installation
fi
done
done
exit 3 # display task, not marked for installation